RT Install Problems on RedHat 7.2

MessageOkay,

I am trying to install rt-2-0-13 on a RedHat 7.2 box… I pass the make testdeps no problem, but when i try make install this is what i get:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
[root@localhost rt-2-0-13]# make install
mkdir -p //opt/rt2/bin
mkdir -p //opt/rt2/WebRT/data
mkdir -p //opt/rt2/WebRT/sessiondata
mkdir -p //opt/rt2/etc
mkdir -p //opt/rt2/lib
mkdir -p //opt/rt2/WebRT/html
mkdir -p //opt/rt2/local/WebRT/html
make: *** No rule to make target initialize.Mysql', needed by install’. Stop.

So I thought I should try a make dropdb… then this happens:
[root@localhost rt-2-0-13]# make dropdb
/usr/bin/perl tools/initdb ‘Mysql’ ‘/usr’ ‘localhost’ ‘’ ‘root’ ‘rt2’ drop
Now dropping the RT2 database.
Enter the Mysql password for root:
About to drop Mysql database rt2.
WARNING: This will erase all data in rt2.
If you have an existing RT 2.x installation, this will destroy all your data.
Proceed [y/N]:y
Dropping Mysql database rt2.
Can’t locate DBIx/DataSource/Mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6
.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /us
r/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_p
erl/5.6.0/DBIx/DataSource.pm line 71, line 2.
make: *** [dropdb] Error 2

So I figured out that there was no Mysql.pm in /usr/lib/perl5/5.6.0/DBIx/DataSource/, but there was a mysql.pm… I copied it to Mysql.pm, then this happened when I ran make dropdb:

    [root@localhost rt-2-0-13]# make dropdb
    /usr/bin/perl   tools/initdb 'Mysql' '/usr' 'localhost' '' 'root' 'rt2' drop
    Now dropping the RT2 database.
    Enter the Mysql password for root:
    About to drop Mysql database rt2.
    WARNING: This will erase all data in rt2.
    If you have an existing RT 2.x installation, this will destroy all your data.
    Proceed [y/N]:y
    Dropping Mysql database rt2.
    Can't locate object method "drop_database" via package "DBIx::DataSource::Mysql"
     at (eval 1) line 1, <STDIN> line 2.

I have no idea what is going on… Like I said, i got through make testdeps no problem…

Does anyone have any ideas?

Howdy!

I would try downloading the source tarball of DBIx::DataSource from CPAN
and reinstalling it. It feels like your install of that package is
wonky. make testdeps will tell you if the package is installed;
reinstalling via the usual perl Makefile.PL && make && make test && make install will actually test your installation and be sure it’s
functioning properly.

Cheers!

–jOn Thu, 2002-06-13 at 06:00, James L. Harrison wrote:

MessageOkay,

I am trying to install rt-2-0-13 on a RedHat 7.2 box… I pass the make testdeps no problem, but when i try make install this is what i get:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
[root@localhost rt-2-0-13]# make install
mkdir -p //opt/rt2/bin
mkdir -p //opt/rt2/WebRT/data
mkdir -p //opt/rt2/WebRT/sessiondata
mkdir -p //opt/rt2/etc
mkdir -p //opt/rt2/lib
mkdir -p //opt/rt2/WebRT/html
mkdir -p //opt/rt2/local/WebRT/html
make: *** No rule to make target initialize.Mysql', needed by install’. Stop.

So I thought I should try a make dropdb… then this happens:
[root@localhost rt-2-0-13]# make dropdb
/usr/bin/perl tools/initdb ‘Mysql’ ‘/usr’ ‘localhost’ ‘’ ‘root’ ‘rt2’ drop
Now dropping the RT2 database.
Enter the Mysql password for root:
About to drop Mysql database rt2.
WARNING: This will erase all data in rt2.
If you have an existing RT 2.x installation, this will destroy all your data.
Proceed [y/N]:y
Dropping Mysql database rt2.
Can’t locate DBIx/DataSource/Mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6
.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /us
r/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_p
erl/5.6.0/DBIx/DataSource.pm line 71, line 2.
make: *** [dropdb] Error 2

So I figured out that there was no Mysql.pm in /usr/lib/perl5/5.6.0/DBIx/DataSource/, but there was a mysql.pm… I copied it to Mysql.pm, then this happened when I ran make dropdb:

    [root@localhost rt-2-0-13]# make dropdb
    /usr/bin/perl   tools/initdb 'Mysql' '/usr' 'localhost' '' 'root' 'rt2' drop
    Now dropping the RT2 database.
    Enter the Mysql password for root:
    About to drop Mysql database rt2.
    WARNING: This will erase all data in rt2.
    If you have an existing RT 2.x installation, this will destroy all your data.
    Proceed [y/N]:y
    Dropping Mysql database rt2.
    Can't locate object method "drop_database" via package "DBIx::DataSource::Mysql"
     at (eval 1) line 1, <STDIN> line 2.

I have no idea what is going on… Like I said, i got through make testdeps no problem…

Does anyone have any ideas?
Jim Meyer, Geek At Large purp@wildbrain.com

Hello,

I tried reinstalling that package manually and got the same results… make
dropdb is needing there to be a Mysql.pm and their is only a mysql.pm…
When I copy mysql.pm to Mysql.pm I get an error that says:
Can’t locate object method “drop_database” via package
"DBIx::DataSource::Mysql at (eval 1) line 1, line 2.

I am not that well versed in mysql so I am having some trouble… should I
try and install Mysql from source? Or is this problem unrelated?

Thanks,
JamieFrom: “Jim Meyer” purp@wildbrain.com
To: “James L. Harrison” harrison@palisadesys.com
Cc: “Request Tracker Users Mailing List” rt-users@lists.fsck.com
Sent: Thursday, June 13, 2002 8:46 AM
Subject: Re: [rt-users] RT Install Problems on RedHat 7.2

Howdy!

I would try downloading the source tarball of DBIx::DataSource from CPAN
and reinstalling it. It feels like your install of that package is
wonky. make testdeps will tell you if the package is installed;
reinstalling via the usual perl Makefile.PL && make && make test && make install will actually test your installation and be sure it’s
functioning properly.

Cheers!

–j

MessageOkay,

I am trying to install rt-2-0-13 on a RedHat 7.2 box… I pass the make
testdeps no problem, but when i try make install this is what i get:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
[root@localhost rt-2-0-13]# make install
mkdir -p //opt/rt2/bin
mkdir -p //opt/rt2/WebRT/data
mkdir -p //opt/rt2/WebRT/sessiondata
mkdir -p //opt/rt2/etc
mkdir -p //opt/rt2/lib
mkdir -p //opt/rt2/WebRT/html
mkdir -p //opt/rt2/local/WebRT/html
make: *** No rule to make target initialize.Mysql', needed by install’. Stop.

So I thought I should try a make dropdb… then this happens:
[root@localhost rt-2-0-13]# make dropdb
/usr/bin/perl tools/initdb ‘Mysql’ ‘/usr’ ‘localhost’ ‘’
‘root’ ‘rt2’ drop
Now dropping the RT2 database.
Enter the Mysql password for root:
About to drop Mysql database rt2.
WARNING: This will erase all data in rt2.
If you have an existing RT 2.x installation, this will destroy
all your data.
Proceed [y/N]:y
Dropping Mysql database rt2.
Can’t locate DBIx/DataSource/Mysql.pm in @INC (@INC contains:
/usr/lib/perl5/5.6
.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /us
r/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
/usr/lib/perl5/site_p
erl/5.6.0/DBIx/DataSource.pm line 71, line 2.
make: *** [dropdb] Error 2

So I figured out that there was no Mysql.pm in
/usr/lib/perl5/5.6.0/DBIx/DataSource/, but there was a mysql.pm… I copied
it to Mysql.pm, then this happened when I ran make dropdb:

    [root@localhost rt-2-0-13]# make dropdb
    /usr/bin/perl   tools/initdb 'Mysql' '/usr' 'localhost' ''

‘root’ ‘rt2’ drop

    Now dropping the RT2 database.
    Enter the Mysql password for root:
    About to drop Mysql database rt2.
    WARNING: This will erase all data in rt2.
    If you have an existing RT 2.x installation, this will destroy

all your data.

    Proceed [y/N]:y
    Dropping Mysql database rt2.
    Can't locate object method "drop_database" via package

“DBIx::DataSource::Mysql”

     at (eval 1) line 1, <STDIN> line 2.

I have no idea what is going on… Like I said, i got through make
testdeps no problem…

Does anyone have any ideas?

Jim Meyer, Geek At Large purp@wildbrain.com


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

On Thu, 13 Jun 2002 10:42:39 CDT, “James L. Harrison” said:

I tried reinstalling that package manually and got the same results… make
dropdb is needing there to be a Mysql.pm and their is only a mysql.pm…
When I copy mysql.pm to Mysql.pm I get an error that says:
Can’t locate object method “drop_database” via package
"DBIx::DataSource::Mysql at (eval 1) line 1, line 2.

I am not that well versed in mysql so I am having some trouble… should I
try and install Mysql from source? Or is this problem unrelated?

Last time I did an install on a RedHat server, 'twas something
approximating…

$ rpm -qa | grep mysql
mysql-devel-3.23.41-1
mysql-3.23.41-1
mysql-server-3.23.41-1
mysqlclient9-3.23.22-6

for the mysql bits. That said, the bit you’re missing is…

$ rpm -qf /usr/lib/perl5/site_perl/5.6.0/i386-linux/Mysql.pm
perl-DBD-MySQL-1.2216-4

So ye probably want to check if you have the perl-DBD-MySQL rpm
installed… or else get it off CPAN.

so ye probably want bits like that…

Don’t worry about installing from source if you’re not familiar
with it… the RPMs work fine and dandy.

Niall

Hello,

I tried reinstalling that package manually and got the same results… make
dropdb is needing there to be a Mysql.pm and their is only a mysql.pm…
When I copy mysql.pm to Mysql.pm I get an error that says:
Can’t locate object method “drop_database” via package
"DBIx::DataSource::Mysql at (eval 1) line 1, line 2.

I am not that well versed in mysql so I am having some trouble… should I
try and install Mysql from source? Or is this problem unrelated?

This is where I say “Duh!” and smack my forehead:

In your /path/to/rt2/etc/config.pm, I’m guessing you’ve told it that:

$DatabaseType=“Mysql”;

…when you should have told it:

$DatabaseType=“mysql”;

–j, a bit slow this morning.
Jim Meyer, Geek At Large purp@wildbrain.com

Okay,

I am trying to install rt-2-0-13 on a RedHat 7.2 box… I pass the make
testdeps no problem, but when i try make install this is what i get:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.7-10 on an i686
[root@localhost rt-2-0-13]# make install
mkdir -p //opt/rt2/bin
mkdir -p //opt/rt2/WebRT/data
mkdir -p //opt/rt2/WebRT/sessiondata
mkdir -p //opt/rt2/etc
mkdir -p //opt/rt2/lib
mkdir -p //opt/rt2/WebRT/html
mkdir -p //opt/rt2/local/WebRT/html
make: *** No rule to make target initialize.Mysql', needed by install’. Stop.

So I thought I should try a make dropdb… then this happens:
[root@localhost rt-2-0-13]# make dropdb
/usr/bin/perl tools/initdb ‘Mysql’ ‘/usr’ ‘localhost’ ‘’
‘root’ ‘rt2’ drop
Now dropping the RT2 database.
Enter the Mysql password for root:
About to drop Mysql database rt2.
WARNING: This will erase all data in rt2.
If you have an existing RT 2.x installation, this will destroy
all your data.
Proceed [y/N]:y
Dropping Mysql database rt2.
Can’t locate DBIx/DataSource/Mysql.pm in @INC (@INC contains:
/usr/lib/perl5/5.6
.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /us
r/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
/usr/lib/perl5/site_p
erl/5.6.0/DBIx/DataSource.pm line 71, line 2.
make: *** [dropdb] Error 2

So I figured out that there was no Mysql.pm in
/usr/lib/perl5/5.6.0/DBIx/DataSource/, but there was a mysql.pm… I
copied it to Mysql.pm, then this happened when I ran make dropdb:

    [root@localhost rt-2-0-13]# make dropdb
    /usr/bin/perl   tools/initdb 'Mysql' '/usr' 'localhost' ''

‘root’ ‘rt2’ drop
Now dropping the RT2 database.
Enter the Mysql password for root:
About to drop Mysql database rt2.
WARNING: This will erase all data in rt2.
If you have an existing RT 2.x installation, this will destroy
all your data.
Proceed [y/N]:y
Dropping Mysql database rt2.
Can’t locate object method “drop_database” via package
“DBIx::DataSource::Mysql”
at (eval 1) line 1, line 2.
I have no idea what is going on… Like I said, i got through make
testdeps no problem…

Does anyone have any ideas?

James L. Harrison wrote:

    make: *** No rule to make target `initialize.Mysql', needed by

`install’. Stop.

Your makefile contains the line

DB_TYPE = Mysql

Change this to

DB_TYPE = mysql

Case is significant.
Phil Homewood, Systems Janitor, www.snapgear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances