[rt-users] RPM installation of RT

John Oliver joliver at john-oliver.net
Thu Apr 12 17:27:12 EDT 2007


On Thu, Apr 12, 2007 at 01:18:35PM -0700, John Oliver wrote:
> On Thu, Apr 12, 2007 at 03:56:28PM -0400, Jesse Vincent wrote:
> > 
> > 
> > 
> > On Thu, Apr 12, 2007 at 12:53:52PM -0700, John Oliver wrote:
> > > I installed Fedora Core 6 on a machine, and was very pleasantly
> > > surprised when "yum install rt3" worked like a charm, after the hours
> > > I'd spent trying to get RT installed under RHEL4! :-)
> > > 
> > > I went to http://my-server/rt3/ and the error_log says:
> > > 
> > > [Thu Apr 12 11:37:28 2007] [error] [client 192.168.2.192]
> > > install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
> > 
> > Looks like the RPM ddidn't handle the dependencies correctly.
> > 
> > > I do have mysql.pm 
> > > 
> > > [root at sdtvm08 ~]# find / -name mysql.pm
> > > /usr/lib/perl5/vendor_perl/5.8.8/DBIx/SearchBuilder/Handle/mysql.pm
> > > /usr/lib/perl5/vendor_perl/5.8.8/DBIx/DBSchema/DBD/mysql.pm
> > 
> > Perl paths are fully qalified.
> > 
> > You have DBIx::SearchBuilder::Handle::mysql and
> > DBIx::DBSchema::DBD::mysql, but not DBD::mysql.
> > 
> > You'll need to install DBD::mysql. 
> 
> Thank you Jesse!
> 
> I installed that via yum, but still have the same issue.  I do have the
> DBD::mysql, but I guess not where @INC expects it to be:
> 
> [root at sdtvm08 ~]# find / -name mysql.pm
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBD/mysql.pm
> /usr/lib/perl5/vendor_perl/5.8.8/DBIx/SearchBuilder/Handle/mysql.pm
> /usr/lib/perl5/vendor_perl/5.8.8/DBIx/DBSchema/DBD/mysql.pm
> 
> Should I just symlink it, or is there a "right" way to correct this?

I symlinked
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBD/mysql.pm
to
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD/mysql.pm

I now get:

[root at sdtvm08 ~]# /usr/sbin/rt-setup-database --action init --dba root
--prompt-for-dba-password
In order to create or update your RT database,this script needs to
connect to your mysql instance on sdtvm05 as root.
Please specify that user's database password below. If the user has no
database
password, just press return.

Password:
DBD::mysql initialisation failed: Can't locate object method "driver"
via package "DBD::mysql" at
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBI.pm line
770, <STDIN> line 1.

Perhaps the capitalisation of DBD 'mysql' isn't right. at
/usr/sbin/rt-setup-database line 103

-- 
***********************************************************************
* John Oliver                             http://www.john-oliver.net/ *
*                                                                     *
***********************************************************************



More information about the rt-users mailing list