Re: install_driver(DB2) failed:

2013-04-10 Thread Jonathan Leffler
Do you have the DB2 client software installed too?  It probably doesn't
require just the DBD::DB2 driver library; it also requires the supporting
libraries from ... is it DB2 Connect?  And without those libraries, loading
the DBD::DB2 driver library fails (but because a supporting module couldn't
be found, not because the main DB2.dll module could not be found).

Basically, could you connect to DB2 without Perl from you machine?  If not,
neither can the Perl DBD::DB2 driver.  If so, have you set the environment
correctly so that Perl is picking up the DB2 libraries.



On Wed, Apr 10, 2013 at 3:51 PM, Harry Jamieson wrote:

> Hi.
>
> I'm running XP SP3
>
> Active Perl 5.14.2.1402
>
> PPM 4.14
>
> DBI 1.625
>
> DBD::DB2 1.85
>
> My connection -
>
>  $dbh = DBI->connect ("dbi:DB2:Sort", "$ID", "$PW",
>  {
> RaiseError => 1,
> PrintError => 1,
> AutoCommit => 1,
>  }
>  ) or die $DBI::errstr;
>
> fails with -
>
> install_driver(DB2) failed: Can't load 
> 'c:/Perl/site/lib/auto/DBD/**DB2/DB2.dll'
> for module DBD::DB2: load_file:The specified module could not be found at
> c:/Perl/lib/DynaLoader.pm line 191.
>  at (eval 6) line 3
> Compilation failed in require at (eval 6) line 3.
> Perhaps a required shared library or dll isn't installed where expected
>  at HyperMail/Includes.pm line 74
>
> but c:/Perl/site/lib/auto/DBD/DB2/**DB2.dll exists with today's date on
> it.  I have DB2_HOME set to C:\Program Files\IBM\SQLLIB\lib.  Does anyone
> know what I'm missing here?
>
> Harry
>
>
>


-- 
Jonathan Leffler   #include 
Guardian of DBD::Informix - v2013.0118 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


install_driver(DB2) failed:

2013-04-10 Thread Harry Jamieson

Hi.

I'm running XP SP3

Active Perl 5.14.2.1402

PPM 4.14

DBI 1.625

DBD::DB2 1.85

My connection -

 $dbh = DBI->connect ("dbi:DB2:Sort", "$ID", "$PW",
 {
RaiseError => 1,
PrintError => 1,
AutoCommit => 1,
     }
 ) or die $DBI::errstr;

fails with -

install_driver(DB2) failed: Can't load 'c:/Perl/site/lib/auto/DBD/DB2/DB2.dll' 
for module DBD::DB2: load_file:The specified module could not be found at 
c:/Perl/lib/DynaLoader.pm line 191.
 at (eval 6) line 3
Compilation failed in require at (eval 6) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at HyperMail/Includes.pm line 74

but c:/Perl/site/lib/auto/DBD/DB2/DB2.dll exists with today's date on it.  I 
have DB2_HOME set to C:\Program Files\IBM\SQLLIB\lib.  Does anyone know what 
I'm missing here?

Harry




install_driver(DB2) failed: Can't load '/tmp/DBD-DB2-0.74/blib/arch/auto/DBD/DB2/DB2.so' for module DBD::DB2: /usr/IBMdb2/

2004-02-06 Thread Carlos Calderon
Was able to run perl Makefile.pl and make for the DBD driver but failing 
when running make test with following:

# make test
make[1]: Entering directory `/tmp/DBD-DB2-0.74/Constants'
make[1]: Leaving directory `/tmp/DBD-DB2-0.74/Constants'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/baseinstall_driver(DB2) failed: Can't load 
'/tmp/DBD-DB2-0.74/blib/arch/auto/DBD/DB2/DB2.so' for module DBD::DB2: 
/usr/IBMdb2/
V7.1/lib/libdb2.so.1: symbol _res, version GLIBC_2.0 not defined in file 
libc.so.6 with link time reference at /usr/lib/perl5/5.8.0/
i386-linux-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/basedubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/mainok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t/base.t 255 65280 52  40.00%  4-5
Failed 1/2 test scripts, 50.00% okay. 2/6 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 29

Any other ideas?

Carlos Calderon
IBM Pervasive Computing
(919) 543-9153