RPM installation of RT

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! :slight_smile:

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
contains: /usr/local/lib/rt3/lib
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .
/etc/httpd) at (eval 210) line 3.\nPerhaps the DBD::mysql perl module
hasn’t been fully installed,\nor perhaps the capitalisation of ‘mysql’
isn’t right.\nAvailable drivers: DBM, ExampleP, File, Pg, Proxy,
Sponge.\n at
/usr/lib/perl5/vendor_perl/5.8.8/DBIx/SearchBuilder/Handle.pm line 106\n

I do have mysql.pm

[root@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

How do I add one of those to @INC, and why wasn’t this already done?

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! :slight_smile:

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@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.

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! :slight_smile:

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@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@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 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! :slight_smile:

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@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@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@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, line 1.

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

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@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

That’s wrong.

Bundle::DBD::mysql is not DBD::mysql.

PGP.sig (186 Bytes)

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

That’s wrong.

Bundle::DBD::mysql is not DBD::mysql.

OK…

[root@sdtvm08 ~]# rpm -qa | grep DBD
perl-DBD-Pg-1.49-1.fc6
perl-DBD-MySQL-3.0007-1.fc6
[root@sdtvm08 ~]# rpm -ql perl-DBD-MySQL-3.0007-1.fc6
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBD
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Bundle/DBD/mysql.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD/mysql
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD/mysql/GetInfo.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/DBD/mysql/INSTALL.pod
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Mysql
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Mysql.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Mysql/Statement.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBD
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBD/mysql/mysql.so
/usr/share/doc/perl-DBD-MySQL-3.0007
/usr/share/doc/perl-DBD-MySQL-3.0007/ChangeLog
/usr/share/doc/perl-DBD-MySQL-3.0007/INSTALL.html
/usr/share/doc/perl-DBD-MySQL-3.0007/README
/usr/share/doc/perl-DBD-MySQL-3.0007/TODO
/usr/share/man/man3/Bundle::DBD::mysql.3pm.gz
/usr/share/man/man3/DBD::mysql.3pm.gz
/usr/share/man/man3/DBD::mysql::INSTALL.3pm.gz
/usr/share/man/man3/Mysql.3pm.gz

I removed the symlink I made above, and tried symlinking
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Mysql.pm to
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/mysql.pm Still
no joy. The only other package I could find that looked like it might
be close was libdbi-dbd-mysql, but that doesn’t work either.

What package do I need to install?

After trying to install RTIR + RTFM over a rpm install of rt3, I decided to
remove the RPM and make the things by hand. The installation of rt3 (3.6.3)
asked for some perl modules, suposed to be installed as pre-requisites of the
rpm. I lost my notes, but at yum.log I found 2 sets of lines. So, you can try
to install those packages or follow the instructions at README file of the
original package until the “testdeps” part. At this point, you can use yum to
install the perl modules, instead of using CPAN. After years using CPAN, I
decided to stop with it and only install RPMs.

yum.log (set 1)

Apr 06 20:17:16 Installed: perl-TeX-Hyphen.noarch 0.140-5.fc6
Apr 06 20:17:16 Installed: perl-Text-Reform.noarch 1.11-6.fc6
Apr 06 20:17:16 Installed: perl-WWW-Mechanize.noarch 1.22-2.fc6
Apr 06 20:17:16 Installed: perl-Carp-Assert.noarch 0.18-4.fc6
Apr 06 20:17:16 Installed: perl-Carp-Assert-More.noarch 1.12-3.fc6
Apr 06 20:17:16 Installed: perl-Test-LongString.noarch 0.11-1.fc6
Apr 06 20:17:17 Installed: perl-Text-Autoformat.noarch 1.13-4.fc6
Apr 06 20:17:17 Installed: perl-Test-WWW-Mechanize.noarch 1.12-1.fc6

yum.log (set 2)

Apr 06 20:28:17 Installed: perl-Class-Accessor.noarch 0.30-1.fc6
Apr 06 20:28:17 Installed: perl-Class-Accessor-Chained.noarch 0.01-4.fc6
Apr 06 20:28:17 Installed: perl-FreezeThaw.noarch 0.43-5.fc6
Apr 06 20:28:17 Installed: perl-Class-Singleton.noarch 1.03-3.fc6
Apr 06 20:28:18 Installed: perl-DateTime.i386 1:0.34-3.fc6
Apr 06 20:28:18 Installed: perl-DateTime-Format-Mail.noarch 0.30-4.fc6
Apr 06 20:28:18 Installed: perl-DateTime-Format-W3CDTF.noarch 0.04-1.fc6
Apr 06 20:28:19 Installed: perl-IO-Tty.i386 1.07-2.fc6
Apr 06 20:28:19 Installed: perl-Expect.noarch 1.20-1.fc6
Apr 06 20:28:19 Installed: perl-Expect-Simple.noarch 0.02-1.fc6
Apr 06 20:28:19 Installed: perl-Test-Expect.noarch 0.30-1.fc6
Apr 06 20:28:19 Installed: perl-Text-Quoted.noarch 2.02-1.fc6
Apr 06 20:28:19 Installed: perl-XML-RSS.noarch 1.22-1.fc6
Apr 06 20:28:19 Installed: perl-Module-Refresh.noarch 0.09-3.fc6
Apr 06 20:28:19 Installed: perl-MLDBM.noarch 2.01-5.fc6
Apr 06 20:39:15 Installed: perl-Sort-Versions.noarch 1.5-5.fc6Em Quinta 12 Abril 2007 16:56, Jesse Vincent escreveu:

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! :slight_smile:

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@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.

How do I add one of those to @INC, and why wasn’t this already done?




The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

 Fernando Frota Machado de Morais
    IR Team - Divisao de Redes de Comunicacao
    Centro de Computacao
    Universidade Federal de Minas Gerais
    Brasil
    Tel. +55(31)3499.4007  Fax. +55(31)3499.4004

/"
\ / Campanha da fita ASCII - contra mail html
X ASCII ribbon campaign - against html mail
/ \

You can try to install those packages (yum install …):

[root@apoio ~]#grep -i db perl.rt
perl-Tie-DBI
perl-DBD-Pg
perl-DBIx-SearchBuilder
perl-BerkeleyDB
perl-MLDBM
perl-DBIx-DBSchema
perl-DBI
perl-DBD-MySQL
perl-DBD-SQLiteEm Quinta 12 Abril 2007 18:59, Jesse Vincent escreveu:

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@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

That’s wrong.

Bundle::DBD::mysql is not DBD::mysql.

 Fernando Frota Machado de Morais
    IR Team - Divisao de Redes de Comunicacao
    Centro de Computacao
    Universidade Federal de Minas Gerais
    Brasil
    Tel. +55(31)3499.4007  Fax. +55(31)3499.4004

/"
\ / Campanha da fita ASCII - contra mail html
X ASCII ribbon campaign - against html mail
/ \