Can't load Perl module Apache::DBI for server

Okay. I have pushed my way through the installation of rt-3.4.1 on
CentOS 4.0. I am now trying to start apache and am getting an error as
follows:

[error] Can’t load Perl module Apache::DBI for server
rttest.progeny.com:0, exiting… [FAILED]

After googling, I determined that I needed to do:

perl -MCPAN -e ‘install Apache::DBI’

When I did this, though, it failed a test.

t/10mysql…NOK 5# Failed test (t/10mysql.t at line 35)

The object isn’t defined

t/10mysql…ok 10/10# Looks like you failed 1 tests of 10.
t/10mysqk…dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 5
Failed 1/10 tests, 90.00% okay (less 5 skipped tests: 4 okay,
40.00%)
Failed Test Stat Wstat Total Fail Failed List of Failed
t/10mysql.t 1 256 10 1 10.00% 5
5 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 1/10 subtests failed, 90.00% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test – NOT OK
Running make installl
make test had returned bad status, won’t install without force

I tried the command again as:

perl -MCPAN -e ‘force install Apache::DBI’

and got basically the same failure.

I would appreciate any help to resolve this.

Vicki

becaue BDI is trying to connect to your db named test as anonymous, mt
thinks its failing to do soOn Apr 14, 2005, at 10:07 AM, Vicki Stanfield wrote:

Okay. I have pushed my way through the installation of rt-3.4.1 on
CentOS 4.0. I am now trying to start apache and am getting an error as
follows:

[error] Can’t load Perl module Apache::DBI for server
rttest.progeny.com:0, exiting… [FAILED]

After googling, I determined that I needed to do:

perl -MCPAN -e ‘install Apache::DBI’

When I did this, though, it failed a test.

t/10mysql…NOK 5# Failed test (t/10mysql.t at line 35)

The object isn’t defined

t/10mysql…ok 10/10# Looks like you failed 1 tests of 10.
t/10mysqk…dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 5
Failed 1/10 tests, 90.00% okay (less 5 skipped tests: 4 okay,
40.00%)
Failed Test Stat Wstat Total Fail Failed List of
Failed


t/10mysql.t 1 256 10 1 10.00% 5 5 subtests
skipped.
Failed 1/1 test scripts, 0.00% okay. 1/10 subtests failed, 90.00% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test – NOT OK
Running make installl
make test had returned bad status, won’t install without force

I tried the command again as:

perl -MCPAN -e ‘force install Apache::DBI’

and got basically the same failure.

I would appreciate any help to resolve this.

Vicki


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon!
(Boston, San Francisco, Austin, Sydney) Contact
training@bestpractical.com for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Steve Rieger
(212) 804-1131 (Work)
(646) 335-8915 (Cell)
chozrim (aim)

becaue BDI is trying to connect to your db named test as anonymous, mt
thinks its failing to do so

Probably.

IIRC, the DBI install requires that your database be installed and
running, and that you preconfigure some config file with a valid
username, password, and connect address for it.

Cheers,
– jra
Jay R. Ashworth jra@baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274

  If you can read this... thank a system administrator.  Or two.  --me

is mysql running ?On Apr 14, 2005, at 10:07 AM, Vicki Stanfield wrote:

Okay. I have pushed my way through the installation of rt-3.4.1 on
CentOS 4.0. I am now trying to start apache and am getting an error as
follows:

[error] Can’t load Perl module Apache::DBI for server
rttest.progeny.com:0, exiting… [FAILED]

After googling, I determined that I needed to do:

perl -MCPAN -e ‘install Apache::DBI’

When I did this, though, it failed a test.

t/10mysql…NOK 5# Failed test (t/10mysql.t at line 35)

The object isn’t defined

t/10mysql…ok 10/10# Looks like you failed 1 tests of 10.
t/10mysqk…dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 5
Failed 1/10 tests, 90.00% okay (less 5 skipped tests: 4 okay,
40.00%)
Failed Test Stat Wstat Total Fail Failed List of
Failed


t/10mysql.t 1 256 10 1 10.00% 5 5 subtests
skipped.
Failed 1/1 test scripts, 0.00% okay. 1/10 subtests failed, 90.00% okay.
make: *** [test_dynamic] Error 2
/usr/bin/make test – NOT OK
Running make installl
make test had returned bad status, won’t install without force

I tried the command again as:

perl -MCPAN -e ‘force install Apache::DBI’

and got basically the same failure.

I would appreciate any help to resolve this.

Vicki


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Administrator and Developer training is coming to your town soon!
(Boston, San Francisco, Austin, Sydney) Contact
training@bestpractical.com for details.

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Steve Rieger
(212) 804-1131 (Work)
(646) 335-8915 (Cell)
chozrim (aim)

Steve RIeger wrote:

nah dont do that

are going to use rt with mod_perl or with fastcgi ?

mod_perl as a dso is a really bad idea.

Steve RIeger wrote:

am assuming that you installed mod_perl from rpm, do you know if its
built WITHEVERYTHING = 1


Steve Rieger
(212) 804-1131 (Work)
(646) 335-8915 (Cell)
chozrim (aim)

I am not at all sure. I guess I could remove the mod_perl (don’t know
how many dependencies this would affect) rpm and reinstall it from
source.

Vicki


Steve Rieger
(212) 804-1131 (Work)
(646) 335-8915 (Cell)
chozrim (aim)

I have installed the perl-FCGI rpm. Still when I try to start apache, I
get errors. Here is what I have added to the httpd.conf:

<VirtualHost 192.168.1.37:80>
ServerName rttest.progeny.com
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
TimeOut 900

    PerlModule Apache::DBI
    PerlRequire /opt/rt3/bin/webmux.pl

    <Location />
            SetHandler perl-script
            PerlHandler RT::Mason
    </Location>

The error I get is this:

Starting httpd: Syntax error on line 1030 of /etc/httpd/conf/httpd.conf:
Invalid command ‘PerlModule’, perhaps mis-spelled or defined by a module
not included in the server configuration
[FAILED]

Line 1030 is this:

PerlModule Apache::DBI

Any idea?

Vicki

IIRC, the DBI install requires that your database be installed and
running, and that you preconfigure some config file with a valid
username, password, and connect address for it.

No, only if you wish to run the tests, and then only if you configure
the environment variables to actually run those tests.

Vivek Khera, Ph.D.
+1-301-869-4449 x806

smime.p7s (2.42 KB)

IIRC, the DBI install requires that your database be installed and
running, and that you preconfigure some config file with a valid
username, password, and connect address for it.

No, only if you wish to run the tests, and then only if you configure
the environment variables to actually run those tests.

I might, in fact, have skipped the tests, it’s been a while.

Yes, certainly: environment, not a file.

Cheers,
– jra
Jay R. Ashworth jra@baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274

  If you can read this... thank a system administrator.  Or two.  --me