Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with DBD-DB2.ppd install (needs DB2CLI.dll)

Status
Not open for further replies.

r18044

Programmer
Mar 13, 2001
6
US
After successfully installing the DBD-DB2.ppd file, I run a script to list the drivers and I get an error. It cannot find the DB2CLI.dll file and it's searching in the C:\Perl\site\lib\auto\DBD\DB2 directory. Any ideas where to get this file and why it does not exist?

The DOS window errors include:
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 206.
at (eval 2) line 3.
Compilation failed in require at (eval 2) line 3.
Perhaps a required shared library or dll isn't installed where expected
at list_drivers.pl line 15

The script I run (list_drivers.pl) is:

#!/usr/bin/perl -w
#
# ch04/listdsns: Enumerates all data sources and all installed drivers
#
use DBI;

### Probe DBI for the installed drivers
my @drivers = DBI->available_drivers();

die "No drivers found!\n" unless @drivers; # should never happen

### Iterate through the drivers and list the data sources for each one
foreach my $driver ( @drivers ) {
print "Driver: $driver\n";
my @dataSources = DBI->data_sources( $driver );
foreach my $dataSource ( @dataSources ) {
print "\tData Source is $dataSource\n";
}
print "\n";
}

exit;
 
Do you have the DB2 Client installed? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Oh, and have a look at:


There's a mailing list there that you will probably find useful, if you're not already subscribed. The support for DBD:DB2 seems to be quite good, it's maintained by IBM. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
The only way I could resolve the issue was to install the DB2 Personal Developer's Edition but because it was so large, I was hoping there was another faster solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top