[rt-users] RE: Fatal Error on RT2 installation

Gororo, Hillary HGororo at chartercom.com
Tue Nov 5 11:26:30 EST 2002


Hi Guys,

I am a perl beginner and have been trying to get RT2 installed on a Solaris
8 machine, running Apache 1.3.27, mod_ssl and mod_perl.  My make testdeps
reports no errors.  When I run make install I get the following error:

>Can't write to '/usr/local/rt2/tmp/rt.log0': No such file or directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
>*** Error code 2
>make: Fatal error: Command failed for target `insert'

On my machine,perl5 is located in /usr/local/lib/.  I notice that I do not
have Dispatch.pm (File.pm).  What do I need to reinstall and where?

Any help will be greatly appreciated!!

Here is my "make install"

mkdir -p //usr/local/rt2/bin
mkdir -p //usr/local/rt2/WebRT/data
mkdir -p //usr/local/rt2/WebRT/sessiondata
mkdir -p //usr/local/rt2/etc
mkdir -p //usr/local/rt2/lib
mkdir -p //usr/local/rt2/WebRT/html
mkdir -p //usr/local/rt2/local/WebRT/html
/usr/local/bin/perl     tools/initdb 'mysql' '/usr/local/mysql' 'localhost'
'' 'root' 'rt2' create
Now creating a database for RT.
Enter the mysql password for root: 
Creating mysql database rt2.
cp etc/acl.mysql '//usr/local/rt2/etc/acl.mysql'
/usr/local/bin/perl -p -i -e " s'!!DB_TYPE!!'"mysql"'g;\
                        s'!!DB_HOST!!'"localhost"'g;\
                        s'!!DB_RT_PASS!!'"rt_pass"'g;\
                        s'!!DB_RT_HOST!!'"localhost"'g;\
                        s'!!DB_RT_USER!!'"rt_user"'g;\
                        s'!!DB_DATABASE!!'"rt2"'g;"
//usr/local/rt2/etc/acl.mysql
bin/initacls.mysql '/usr/local/mysql' 'localhost' '' 'root' '' 'rt2'
'//usr/local/rt2/etc/acl.mysql' 
Enter the mysql administrator's database password to create a new user for
RT
Enter password: 
Enter the mysql administrator's database password to nondestructively reload
the database
Enter password: 
/usr/local/bin/perl     tools/initdb 'mysql' '/usr/local/mysql' 'localhost'
'' 'rt_user' 'rt2' insert
Now populating database schema.
Enter the mysql password for rt_user: 
Creating database schema.
schema sucessfully inserted
[ -f //usr/local/rt2/etc/config.pm ] && \
        mv //usr/local/rt2/etc/config.pm //usr/local/rt2/etc/config.pm.old
&& \
        chmod 000 //usr/local/rt2/etc/config.pm.old
cp -rp ./etc/config.pm //usr/local/rt2/etc/config.pm
/usr/local/bin/perl -p -i -e "\
s'!!DB_TYPE!!'"mysql"'g;\
s'!!DB_HOST!!'"localhost"'g;\
s'!!DB_PORT!!'""'g;\
s'!!DB_RT_PASS!!'"rt_pass"'g;\
s'!!DB_RT_USER!!'"rt_user"'g;\
s'!!DB_DATABASE!!'"rt2"'g;\
s'!!MASON_HTML_PATH!!'"/usr/local/rt2/WebRT/html"'g;\
s'!!MASON_LOCAL_HTML_PATH!!'"/usr/local/rt2/local/WebRT/html"'g;\
s'!!MASON_SESSION_PATH!!'"/usr/local/rt2/WebRT/sessiondata"'g;\
s'!!MASON_DATA_PATH!!'"/usr/local/rt2/WebRT/data"'g;\
s'!!RT_LOG_PATH!!'"/usr/local/rt2/tmp"'g;\
s'!!RT_VERSION!!'"2.0.14"'g;\
" //usr/local/rt2/etc/config.pm
cp -rp ./tools/insertdata \
         //usr/local/rt2/etc
/usr/local/bin/perl -p -i -e " s'!!RT_ETC_PATH!!'/usr/local/rt2/etc'g;\
                   s'!!RT_LIB_PATH!!'/usr/local/rt2/lib'g;"\
        //usr/local/rt2/etc/insertdata
[ -d //usr/local/rt2/lib ] || mkdir //usr/local/rt2/lib
chown -R root //usr/local/rt2/lib
chgrp -R bin //usr/local/rt2/lib
chmod -R 0755 //usr/local/rt2/lib
( cd ./lib; \
  /usr/local/bin/perl Makefile.PL INSTALLSITELIB=//usr/local/rt2/lib \
                      INSTALLMAN1DIR=//usr/local/rt2/man/man1 \
                      INSTALLMAN3DIR=//usr/local/rt2/man/man3 \
    && make \
    && make test \
    && /usr/local/bin/perl -p -i -e " s'!!RT_VERSION!!'2.0.14'g;"
blib/lib/RT.pm ;\
    make install \
                   INSTALLSITEMAN1DIR=//usr/local/rt2/man/man1 \
                   INSTALLSITEMAN3DIR=//usr/local/rt2/man/man3 \
)
Writing Makefile for RT
Manifying blib/man3/RT::GroupMember.3
Manifying blib/man3/RT::Attachments.3
Manifying blib/man3/RT::ScripCondition.3
Manifying blib/man3/RT::Interface::Email.3
Manifying blib/man3/RT::Action::SendEmail.3
Manifying blib/man3/RT::ScripActions.3
Manifying blib/man3/RT::ScripAction.3
Manifying blib/man3/RT::Templates.3
Manifying blib/man3/RT::ScripConditions.3
Manifying blib/man3/RT::Action::Generic.3
Manifying blib/man3/RT::Groups.3
Manifying blib/man3/RT::Handle.3
Manifying blib/man3/RT::Interface::CLI.3
Manifying blib/man3/RT::Group.3
Manifying blib/man3/RT::Users.3
Manifying blib/man3/RT::Ticket.3
Manifying blib/man3/RT::ACE.3
Manifying blib/man3/RT::CurrentUser.3
Manifying blib/man3/RT::Watchers.3
Manifying blib/man3/RT::Tickets.3
Manifying blib/man3/RT::Transaction.3
Manifying blib/man3/RT::Action::SendPasswordEmail.3
Manifying blib/man3/RT::Date.3
Manifying blib/man3/RT::Transactions.3
Manifying blib/man3/RT::Links.3
Manifying blib/man3/RT::Scrips.3
Manifying blib/man3/RT::ObjectKeyword.3
Manifying blib/man3/RT::Template.3
Manifying blib/man3/RT::User.3
Manifying blib/man3/RT::Condition::Generic.3
Manifying blib/man3/RT::KeywordSelect.3
Manifying blib/man3/RT::Queues.3
Manifying blib/man3/RT::Scrip.3
Manifying blib/man3/RT::Attachment.3
Manifying blib/man3/RT::EasySearch.3
Manifying blib/man3/RT::ObjectKeywords.3
Manifying blib/man3/RT::ACL.3
Manifying blib/man3/RT::GroupMembers.3
Manifying blib/man3/RT::Record.3
Manifying blib/man3/RT::Queue.3
Manifying blib/man3/RT::Watcher.3
Manifying blib/man3/RT::Link.3
Manifying blib/man3/RT::Keywords.3
Manifying blib/man3/RT::Keyword.3
Manifying blib/man3/RT.3
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
ok 1
Writing //usr/local/rt2/lib/auto/RT/.packlist
Appending installation info to
/usr/local/lib/perl5/5.8.0/sun4-solaris/perllocal.pod
cp -rp ./webrt/* //usr/local/rt2/WebRT/html
cp -p ./bin/webmux.pl //usr/local/rt2/bin/webmux.pl
cp -p ./bin/rt-mailgate //usr/local/rt2/bin/rt-mailgate
cp -p ./bin/rtadmin //usr/local/rt2/bin/rtadmin
cp -p ./bin/rt //usr/local/rt2/bin/rt
cp -p ./bin/mason_handler.fcgi //usr/local/rt2/bin/mason_handler.fcgi
cp -p ./bin/mason_handler.scgi //usr/local/rt2/bin/mason_handler.scgi
/usr/local/bin/perl -p -i -e "s'!!RT_PATH!!'"/usr/local/rt2"'g;\
                        s'!!PERL!!'"/usr/local/bin/perl"'g;\
                        s'!!RT_VERSION!!'"2.0.14"'g;\
                        s'!!RT_ETC_PATH!!'"/usr/local/rt2/etc"'g;\
                        s'!!RT_LIB_PATH!!'"/usr/local/rt2/lib"'g;"\
        //usr/local/rt2/bin/webmux.pl \
        //usr/local/rt2/bin/mason_handler.fcgi \
        //usr/local/rt2/bin/mason_handler.scgi \
        //usr/local/rt2/bin/rt \
        //usr/local/rt2/bin/rtadmin \
        //usr/local/rt2/bin/rt-mailgate
# Make the libraries readable
chmod -R 0755 //usr/local/rt2
chown -R root //usr/local/rt2/lib
chgrp -R bin //usr/local/rt2/lib
chown -R root //usr/local/rt2/bin
chgrp -R rt //usr/local/rt2/bin
chmod 0755 //usr/local/rt2/bin
chmod 0755 //usr/local/rt2/bin  
chmod 0755 //usr/local/rt2/etc
chmod 0500 //usr/local/rt2/etc/*
#TODO: the config file should probably be able to have its
# owner set seperately from the binaries.
chown -R root //usr/local/rt2/etc
chgrp -R rt //usr/local/rt2/etc
chmod 0550 //usr/local/rt2/etc/config.pm
# Make the interfaces executable and setgid rt
chown root //usr/local/rt2/bin/rt-mailgate \
                //usr/local/rt2/bin/mason_handler.fcgi \
                //usr/local/rt2/bin/mason_handler.scgi \
                //usr/local/rt2/bin/rt \
                //usr/local/rt2/bin/rtadmin
chgrp rt //usr/local/rt2/bin/rt-mailgate \
                //usr/local/rt2/bin/mason_handler.fcgi \
                //usr/local/rt2/bin/mason_handler.scgi \
                //usr/local/rt2/bin/rt \
                //usr/local/rt2/bin/rtadmin
chmod 0755      //usr/local/rt2/bin/rt-mailgate \
                //usr/local/rt2/bin/mason_handler.fcgi \
                //usr/local/rt2/bin/mason_handler.scgi \
                //usr/local/rt2/bin/rt \
                //usr/local/rt2/bin/rtadmin
chmod g+s       //usr/local/rt2/bin/rt-mailgate \
                //usr/local/rt2/bin/mason_handler.fcgi \
                //usr/local/rt2/bin/mason_handler.scgi \
                //usr/local/rt2/bin/rt \
                //usr/local/rt2/bin/rtadmin
# Make the web ui readable by all. 
chmod -R  u+rwX,go-w,go+rX      //usr/local/rt2/WebRT/html \
                                //usr/local/rt2/local/WebRT/html
chown -R root   //usr/local/rt2/WebRT/html \
                        //usr/local/rt2/local/WebRT/html
chgrp -R bin    //usr/local/rt2/WebRT/html \
                        //usr/local/rt2/local/WebRT/html
# Make the web ui's data dir writable
chmod 0770      //usr/local/rt2/WebRT/data \
                //usr/local/rt2/WebRT/sessiondata
chown -R rt     //usr/local/rt2/WebRT/data \
                        //usr/local/rt2/WebRT/sessiondata
chgrp -R rt     //usr/local/rt2/WebRT/data \
                        //usr/local/rt2/WebRT/sessiondata
Congratulations. RT has been upgraded. You should now check-over
/usr/local/rt2/etc/config.pm for any necessary site customization.
Additionally,
you should update RT's system database objects by running 
           /usr/local/rt2/etc/insertdata <version>
where <version> is the version of RT you're upgrading from.
/usr/local/bin/perl -I//usr/local/rt2/etc -I//usr/local/rt2/lib
//usr/local/rt2/etc/insertdata
Checking for existing system user...not found.  This appears to be a new
installationCreating system user...done.
Can't write to '/usr/local/rt2/tmp/rt.log0': No such file or directory at
/usr/local/lib/perl5/site_perl/5.8.0/Log/Dispatch/File.pm line 72.
*** Error code 2
make: Fatal error: Command failed for target `insert'



Thank you
Henry


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20021105/1f568678/attachment.htm>


More information about the rt-users mailing list