[rt-users] Installation Trouble

Charles Whittington chw at scs.co.uk
Mon Feb 27 05:11:32 EST 2006


I am new to RT as sysadmin (though have used it elsewhere).

At make initialize-database, I get

ntech1:/tmp/rt-3.4.5 # make initialize-database
/usr/local/bin/perl //opt/rt3/sbin/rt-setup-database --action init --dba 
root --prompt-for-dba-password
"my" variable $id masks earlier declaration in same scope at 
/opt/rt3/lib/RT/CustomField_Overlay.pm line 879.
"my" variable $id masks earlier declaration in same scope at 
/opt/rt3/lib/RT/CustomField_Overlay.pm line 914.
In order to create or update your RT database,this script needs to 
connect to your mysql instance on localhost as root.
Please specify that user's database password below. If the user has no 
database
password, just press return.
Password: xxxxxxx
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC 
contains: /opt/rt3/lib /usr/local/lib/perl5/5.8.8/i686-linux 
/usr/local/lib/perl5/5.8.8 
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux 
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) 
at (eval 188) line 3, <STDIN> line 1.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Proxy, SQLite, Sponge.
 at //opt/rt3/sbin/rt-setup-database line 101
make: *** [initialize-database] Error 2
ntech1:/tmp/rt-3.4.5 #

Looking for mysql.pm gives:
ntech1:/tmp/rt-3.4.5 # find / -name mysql.pm
/usr/local/lib/perl5/site_perl/5.8.8/DBIx/SearchBuilder/Handle/mysql.pm
/usr/local/lib/perl5/site_perl/5.8.8/DBIx/DBSchema/DBD/mysql.pm
find: /proc/2041/fd: No such file or directory
/root/.cpan/build/DBD-mysql-3.0002/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-3.0002/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-3.0002/blib/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-3.0002/blib/lib/Bundle/DBD/mysql.pm


Can anyone tell me what has gone wrong here? Which DBD/mysql.pm is 
required and where to set INC so it can be found?

TIA

Charles Whittington
SuSE Linux 8.2 which latest Perl installed, mysql 4.0, apache




More information about the rt-users mailing list