On 2/8/07, Wholey, Joseph (GTI) <[EMAIL PROTECTED]> wrote:
Jonathon,
Dear Josaph :-) I'm really in a pinch here:
Here's the error I get when I try to compile the DBD:. Can you help me out here. Below you'll find my level of Perl and the dbd and dbi versions I'm attempting to install. gcc -shared DB2.o dbdimp.o -o blib/arch/auto/DBD/DB2/DB2.so -L/opt/IBM/db2/V8.1/lib -ldb2 /usr/bin/ld: skipping incompatible /opt/IBM/db2/V8.1/lib/libdb2.so when searching for -ldb2
Well, it looks like the DB2 client software you have is probably a 32-bit version, so GCC is quite correctly not linking your 64-bit DBD::DB2 module with the 32-bit DB2 client software -- it wouldn't work even if it tried. You have two options: * Find, install, use a 64-bit DB2 client library. * Recompile Perl, DBI and then DBD::DB2 as 32-bit code to use the 32-bit DB2 client. Both would work - which is better for you depends on whether you can find a 64-bit DB2 client library. /usr/bin/ld: cannot find -ldb2
collect2: ld returned 1 exit status make: *** [blib/arch/auto/DBD/DB2/DB2.so] Error 1 [EMAIL PROTECTED] DBD-DB2-0.78]# Here are the versions I'm trying to compile as well as the perl version. DBI-1.51 DBD-DB2-0.78 [EMAIL PROTECTED] DBD-DB2-0.78]# perl -v This is perl, v5.8.5 built for x86_64-linux-thread-multi
-- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org "I don't suffer from insanity - I enjoy every minute of it."