DB Module installation issue in Perl


P

Pioneer

Hello Folks,

we recently installed perl on new server. While testing a perl script
for DB connectivity got following error.

/common/load1/tempinstall_driver(DB2) failed: Can't load '/appserv/
appldata/perlmod/test/DBD-TEST/DBD-DB2-0.76/blib/arch
/auto/DBD/DB2/Constants/Constants.so' for module DBD::DB2::Constants:
System error: Exec format error
Could not load module /appserv/appldata/perlmod/test/DBD-TEST/DBD-
DB2-0.76/blib/arch/auto/DBD/DB2/Constants/Constants.so
..
The module has an invalid magic number. at /usr/opt/perl5/lib/
5.8.0/aix-thread-multi/DynaLoader.pm line 229.
at /appserv/appldata/perlmod/test/DBD-TEST/DBD-DB2-0.76/blib/lib/DBD/
DB2.pm line 31
Compilation failed in require at /appserv/appldata/perlmod/test/DBD-
TEST/DBD-DB2-0.76/blib/lib/DBD/DB2.pm line 31.
BEGIN failed--compilation aborted at /appserv/appldata/perlmod/test/
DBD-TEST/DBD-DB2-0.76/blib/lib/DBD/DB2.pm line 31.
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where
expected
at testdb.pl line 33

Now from .profile, it seems there are 2 DB modules, DBI and DBD.

For both modules, I ran following commands in their respective dirs.
i.e.

/appserv/appldata/perlmod/test/DBD-TEST/DBD-DB2-0.76
and /appserv/appldata/perlmod/test/new_DBI/DBI-1.29.

perl Makefile.PL
make
make test
make install.

In DBI module everything went fine. in DBD path, got following error,

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base....install_driver(DB2) failed: Can't load '/appserv/appldata/
perlmod/test/DBD-TEST/DBD-DB2-0.76/blib/arch/auto/DB
D/DB2/DB2.so' for module DBD::DB2: Could not load module /usr/local/
db2/db2clnt2/sqllib/lib/libdb2.a(shr.o).
Dependent module /usr/local/db2/db2clnt2/sqllib/lib/
libdb2trcapi.a(shr.o) could not be loaded.
Member shr.o is not found in archive
System error: Exec format error
Could not load module /usr/local/db2/db2clnt2/sqllib/lib/
libdb2trcapi.a.
Dependent module /usr/local/db2/db2clnt2/sqllib/lib/
libdb2trcapi.a could not be loaded. at /usr/opt/perl5/lib/5.
8.0/aix-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where
expected
at t/base.t line 16
t/base....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/main....ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/base.t 255 65280 5 2 40.00% 4-5
Failed 1/2 test scripts, 50.00% okay. 2/6 subtests failed, 66.67%
okay.
make: The error code from the last command is 2.


Stop.

Any help/pointers would be appreciated.

Thanks
Aditya
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top