palaxos has asked for the wisdom of the Perl Monks concerning the following question:
I'm having a tough time with a script i wrote that connects to a DB2 DB and does some stuff.
When i'm executing perl script.pl, i get an error :
ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8. +4/sun4-solaris-64int/auto/DBD/DB2/DB2.so: symbol SQLAllocHandle: refe +renced symbol not found
Running perl in debug mode, i found out that it was the DBI->connect line that was failing :
my $dbh_DW = DBI->connect("DBI:DB2:Database=$DW_DB_NAME; Hostname=$DW_ +DB_HOST; Port=$DW_DB_PORT; Protocol=TCPIP; UID=$DW_DB_USER; PWD=$DW_D +B_PASS;",$DW_DB_USER,$DW_DB_PASS)
I've had to install the modules i needed manually (server is isolated) but i think I got them all
I'm using Solaris 10 64-bits. (using perl 5.8.4, DBI is 1.616 and DBD::DB2 is 1.82)
I've been working on this for a week, so please if anyone has an idea on why this error is happening, let me know!
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem Compiling under Solaris using DBI and DBD::DB2
by Eliya (Vicar) on Jan 13, 2012 at 20:29 UTC | |
by palaxos (Initiate) on Jan 13, 2012 at 20:55 UTC | |
by Eliya (Vicar) on Jan 13, 2012 at 21:54 UTC | |
by Anonymous Monk on Jan 14, 2012 at 06:23 UTC | |
by cavac (Prior) on Jan 14, 2012 at 08:17 UTC | |
| |
by palaxos (Initiate) on Jan 18, 2012 at 14:21 UTC |