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 <ha...@persoftware.com>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 <jonathan.leff...@gmail.com> #include <disclaimer.h> 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."