Hi,
thank you, but unfortunately that didn't solve the problem:
# perl db2x.pl
perl: error in loading shared libraries:
/usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBD/DB2/DB2.so: undefined symbol:
SQLAllocHandle
best regards,
Thomas
---------------------- Weitergeleitet von Thomas Emde/EMDE/IM/DE/BAYER on
2001-12-20 07:47 ---------------------------
Hardy Merrill <[EMAIL PROTECTED]> on 2001-12-18 17:31:11
An: [EMAIL PROTECTED]
Kopie: [EMAIL PROTECTED]
Blindkopie:
Thema: Re: Error with DBI->Connect
I'm no expert on this, but when I first installed DBD::Oracle I
had a similar "shared library" error, so here's what fixed my
problem on Redhat Linux 6.1:
* as "root",
$ cd /etc
$ vi ld.so.conf
- add a line for Oracle "lib" directory - for me that
line was:
/u01/app/oracle/product/8.1.7/lib
I would think your DB2 would be something like
/path/to/db2/lib
$ ldconfig
- after you have your DB2 line in ld.so.conf, run
ldconfig to update the shared libraries
Once you've done all that, try running your DBI script again.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote:
> Hi,
>
> I built DBI and DBD::DB2 on my linux 2.2.16 system and then ran a perl script
to
> connect to a remote database
> called "dsnt" which has been catalogued previously.
>
> The command looks like this:
>
> "$dbh = DBI->connect("dbi:DB2:dsnt",$userid,$passwd, { LongReadLen => 102400 }
> );"
>
> The error log of my webserver gives me the following error:
>
> /usr/sbin/httpd: error in loading shared libraries:
> /usr/lib/perl5/site_perl/5.005/i586-linux/auto/DBD/DB2/DB2.so: undefined
symbol:
> SQLAllocHandle
>
> Any help would be greatly appreciated!
>
> best regards,
> Thomas