DB Module installation issue in Perl

Discussion in 'Perl Misc' started by Pioneer, Apr 22, 2007.

  1. Pioneer

    Pioneer Guest

    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
     
    Pioneer, Apr 22, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mistletoe

    Installation of a perl module

    mistletoe, Nov 12, 2003, in forum: Perl Misc
    Replies:
    5
    Views:
    340
    Helgi Briem
    Nov 13, 2003
  2. HarishN
    Replies:
    4
    Views:
    254
    Anno Siegel
    Feb 23, 2004
  3. JONL
    Replies:
    12
    Views:
    287
  4. Replies:
    0
    Views:
    115
  5. Replies:
    1
    Views:
    100
Loading...

Share This Page