Apache::DBI module installation fails

Alle,

When I ran perl

sbin/rt-test-dependencies --with-mysql --with-modperl1 --install, everything
worked properly except the Apache::DBI installation. perl
sbin/rt-test-dependencies --with-mysql --with-modperl1 shows:

... MODPERL1 dependencies: CGI ...found Apache::Request ...found Apache::DBI ...MISSING ...
But a double check of installed modules shows:

[root@hilo rt-3-0-0]# /usr/local/bin/check_perl_mods | grep Apache::DBI
Apache::DBI – 0.88
[root@hilo rt-3-0-0]#

CPAN tries to install the current Apache-DBI-0.91 but I get the following

error:

... Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-linux -I/us r/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/10mysql....ok 2/7# Failed test (t/10mysql.t at line 23) # Failed test (t/10mysql.t at line 26) t/10mysql....ok 5/7# Failed test (t/10mysql.t at line 31) # Failed test (t/10mysql.t at line 33) # 'ne' # undef # Looks like you failed 4 tests of 7. t/10mysql....dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 3-4, 6-7 Failed 4/7 tests, 42.86% okay Failed Test Stat Wstat Total Fail Failed List of Failed t/10mysql.t 4 1024 7 4 57.14% 3-4 6-7 Failed 1/1 test scripts, 0.00% okay. 4/7 subtests failed, 42.86% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force ...
I have also tried doing it by hand with no joy. Can anyone offer some

advice?

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com

Hello Camron,

I got to the same problem (exact same output to make test), and I
couldn’t got Apache::DBI 0.91 to work.
I’ve even recompiled modperl with the appropriate option but it didn’t
worked.

(from man Apache::DBI

PREREQUISITES
Note that this module needs mod_perl-1.08 or higher,
apache_1.3.0 or higher and that mod_perl needs to be configured with the
appropriate call-back hooks:

      PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1.

)

I’ve tried to install an older version of Apache::DBI (0.88), which was
ok, but then when I used RT, it was leaving all the mysql connection
open until I got an apache internal process error.

I would say it is something on which Apache::DBI rely that is not working.

As I couldn’t find any solution, I’ve switched back to RT2

Good luck

       Luc

here is some verbose for the make test:

make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e ‘use Test::Harness
qw(&runtests $verbose); $verbose=1; runtests @ARGV;’ t/*.t
t/10mysql…1…7
ok 1 - use Apache::DBI;
ok 2 - DBD::mysql loaded
28402 Apache::DBI need ping: yes
28402 Apache::DBI new connect to
’testAutoCommit=1PrintError=1RaiseError=1’
not ok 3 - Connected 1

Failed test (t/10mysql.t at line 23)

28402 Apache::DBI need ping: no
28402 Apache::DBI already connected to
’testAutoCommit=1PrintError=1RaiseError=1’
not ok 4 - Connected 2

Failed test (t/10mysql.t at line 26)

ok 5 - got the same connection both times
28402 Apache::DBI need ping: no
28402 Apache::DBI already connected to
’testAutoCommit=1PrintError=1RaiseError=1’
not ok 6 - Connected 3

Failed test (t/10mysql.t at line 31)

not ok 7 - got different connection from different attributes

Failed test (t/10mysql.t at line 33)

‘ne’

undef

Looks like you failed 4 tests of 7.

dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 3-4, 6-7
Failed 4/7 tests, 42.86% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
t/10mysql.t 4 1024 7 4 57.14% 3-4 6-7
Failed 1/1 test scripts, 0.00% okay. 4/7 subtests failed, 42.86% okay.
make: *** [test_dynamic] Error 2

Camron W. Fox wrote:

When I ran perl
sbin/rt-test-dependencies --with-mysql --with-modperl1 --install, everything
worked properly except the Apache::DBI installation. perl
sbin/rt-test-dependencies --with-mysql --with-modperl1 shows:

FWIW,

rt 3.0.x along the fastcgi path works wonderfully.

Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://www.in-nomine.org/~asmodai/diary/
Only the wisest and the stupidest of men never change…