> $ make
> cp DB2.pm blib/lib/DBD/DB2.pm
> cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm
> ...
> Running Mkbootstrap for DBD::DB2 ()
> chmod 644 DB2.bs
> rm -f blib/arch/auto/DBD/DB2/DB2.so
> gcc  -shared DB2.o dbdimp.o   -o blib/arch/auto/DBD/DB2/DB2.so
> -L/home/db2inst1/sqllib/lib -ldb2
> /usr/bin/ld: skipping incompatible /home/db2inst1/sqllib/lib/libdb2.so
> when searching for -ldb2
> /usr/bin/ld: cannot find -ldb2
> collect2: ld returned 1 exit status
>


Do you have a 64-bit version of the DB2 Connect software installed?  Which
version do you have installed?
Is your Perl also a 64-bit version?

Have you ever been able to connect to DB2 using the DB2 Connect software?
Have you ever been able to compile any program with it and connect to DB2?

>> Thanks for your help.  We had a 64-bit install, but then a 32-bit patch.
>> As part of the db2iupdt process one needs to specify 64-bit, I'm told by
>> my DBA.

(RoT [Rule of Thumb]: if you can't create a simple standalone program that
connects to a database, you probably won't make Perl connect either.  Just
because you can create a simple standalone program does not show that your
compilation options are compatible with Perl's, but it greatly increases
your chances of success, and eliminates whole swathes of problems.  And
those comments apply to any driver - not just DBD::DB2.)

Reply via email to