pmcferrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello: I've installed dozens of Perl/Apache modules with out any problems until last week. I'm using Perl 5.8.0 and Apache 1.3.31. Module Apache::Session 1.6 is failing test "t/99dbfile" with the following error message:
t/99dbfile.........Can't locate DB_File.pm in @INC (@INC contains: /bld/RT/.cpan/build/Apache-Session-1.6/blib/lib/bld/RT/.cpan/build/Apa +che-Session- 1.6/blib/arch/bld/RT/perl/lib/5.8.4/sun4-solaris/bld/RT/perl/lib/5.8.4 +/sun4-solaris /bld/RT/perl/lib/5.8.4 /bld/RT/perl/lib/site_perl/5.8.4/sun4-solaris /bld/RT/perl/lib/site_perl/5.8.4/sun4-solaris /bld/RT/perl/lib/site_pe +rl/5.8.4 /bld/RT/perl/lib/site_perl/5.8.4/sun4-solaris /bld/RT/perl/lib/site_perl/5.8.4 /bld/RT/perl/lib/site_perl . /bld/RT/perl/lib/5.8.4/sun4-solaris /bld/RT/perl/lib/5.8.4 /bld/RT/perl/lib/site_perl/5.8.4/sun4-solaris /bld/RT/perl/lib/site_perl/5.8.4 /bld/RT/perl/lib/site_perl .) at /bld/RT/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/D +B_File.pm line 14. BEGIN failed--compilation aborted at /bld/RT/.cpan/build/Apache-Sessio +n-1.6/blib /lib/Apache/Session/Store/DB_File.pm line 14. Compilation failed in require at /bld/RT/.cpan/build/Apache-Session-1. +6/blib/lib /Apache/Session/DB_File.pm line 20. BEGIN failed--compilation aborted at /bld/RT/.cpan/build/Apache-Sessio +n-1.6/blib /lib/Apache/Session/DB_File.pm line 20. Compilation failed in require at t/99dbfile.t line 7. BEGIN failed--compilation aborted at t/99dbfile.t line 7. dubious
Below is *ALL* occurrances of the file DB_File.pm:
Size Mtime Name ----- ----------- ------------------------------ 1960 Sep 1 2000 /bld/RT/.cpan/build/Apache-Session-1.6/blib/lib/Ap +ache/Sessi on/DB_File.pm 3193 May 26 2000 /bld/RT/.cpan/build/Apache-Session-1.6/blib/lib/Ap +ache/Sessi on/Store/DB_File.pm 1960 Sep 1 2000 /bld/RT/.cpan/build/Apache-Session-1.6/Session/DB_ +File.pm 3193 May 26 2000 /bld/RT/.cpan/build/Apache-Session-1.6/Session/Sto +re/DB_File .pm 57759 May 13 20:53 /bld/RT/Packages/MYSQL/mysql-4.0.20/bdb/perl.DB_Fi +le/DB_File .pm 63302 Dec 27 2003 /bld/RT/Packages/Perl/perl-5.8.4/ext/DB_File/DB_Fi +le.pm
Am I missing some dependency? I was using:
"perl -MCPAN -e "install Apache::Session"
I'm also failing tests in three other modules afterwards: WWW::Mechanize and Log::Dispatch (and prerequisite Module::Build) -paul mcferrin

Replies are listed 'Best First'.
Re: Tests for Apache::Session fails
by Joost (Canon) on Jul 07, 2004 at 21:30 UTC
    I don't know much about solaris, but it seems to me you have the DB_File module installed in /bld/RT/Packages/Perl/perl-5.8.4/ext/DB_File/ while your @INC does not contain /bld/RT/Packages/Perl/perl-5.8.4/ext/DB_File/

    If that is correct, you have 2 options here:

    1. You install DB_File.pm in some directory that is in your standard @INC. - Preferable with a fresh install of DB_file from CPAN.
    2. Or you can add /bld/RT/Packages/Perl/perl-5.8.4/ext/DB_File/ to @INC manually. Try doing
      export PERL5LIB=$PERL5LIB:/bld/RT/Packages/Perl/perl-5.8.4/ext/DB_File
      before installing Apache::Session.
Re: Tests for Apache::Session fails
by perrin (Chancellor) on Jul 08, 2004 at 04:21 UTC
    This is irrelevant unless you were planning to use DB_File for storage of sessions.