Your version of Perl is older than the ones that bundled version.pm. Did you
install version.pm on your own beforehand? -- Darren Duncan
venuswu wrote:
A error occurs, when I "make test" during my installation of DBD, and call
my DBI.
Can you give a help,thank you
PGINITDB="/opt/app/postgres/bin/initdb" PERL_DL_NONLAZY=1 /usr/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')"
t/*.t
t/00_signature......skipped
all skipped: Set the environment variable TEST_SIGNATURE to enable
this test
t/00basic...........ok 1/3
t/00basic...........NOK 2# Failed test 'use DBD::Pg;'
# at t/00basic.t line 14.
# Tried to use 'DBD::Pg'.
# Error: Can't locate version.pm in @INC (@INC contains:
/opt/data/icdev/venuswu/DBD-Pg-2.19.2/blib/lib
/opt/data/icdev/venuswu/DBD-Pg-2.19.2/blib/arch
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-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/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /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/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8 .) at
/opt/data/icdev/venuswu/DBD-Pg-2.19.2/blib/lib/DBD/Pg.pm line 19.
# BEGIN failed--compilation aborted at
/opt/data/icdev/venuswu/DBD-Pg-2.19.2/blib/lib/DBD/Pg.pm line 19.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at (eval 7) line 2.
FAILED--Further testing stopped: Cannot continue without DBD::Pg
make: *** [test_dynamic] Error 9