Link to home
Start Free TrialLog in
Avatar of mohitgyl
mohitgyl

asked on

Perl DBI Driver

Hi i am using LINUX x86 32bit RHEL 5.5 and installed DB2 V9.7 as a database. I am trying to install DBI Driver for Perl connectvity with database. I downoaded the driver from this link http://www-01.ibm.com/support/docview.wss?rs=71&uid=swg21297335 and folllowed the steps mentioned over there.

I issued :

 perl Makefile.PL (fine)
make (fine)
make test(error)

Following is the error:
make[1]: Entering directory `/home/antu/DBD-DB2-1.79/Constants'
make[1]: Leaving directory `/home/antu/DBD-DB2-1.79/Constants'
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 '/home/antu/DBD-DB2-1.79/blib/arch/auto/DBD/DB2/DB2.so' for module DBD::DB2: libdb2.so.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
 at (eval 3) line 3
Compilation failed in require at (eval 3) 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 2 (wstat 512, 0x200)
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       2   512     5    4  80.00%  4-5
Failed 1/2 test scripts, 50.00% okay. 2/6 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 255



Avatar of Justin Mathews
Justin Mathews

Do you need support for DB2 database?

If not, proceed with:

make install

If it goes fine you should be ok.
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mohitgyl

ASKER

I solved my problem Partially.

Thanks