Berger, Daniel
2/20/2006 7:23:00 PM
> -----Original Message-----
> From: Costas [mailto:c_piliotis@yahoo.com]
> Sent: Monday, February 20, 2006 12:14 PM
> To: ruby-talk ML
> Subject: DB2 Driver on RHEL 4 x86_64
>
>
> Having some trouble getting the Ruby/DB2 Driver going on my
> x86_64 box...
>
> FWIW, I'm using DB2 8.1, and have set
> DB2DIR=/opt/IBM/db2/V8.1 ; I'm pretty sure the path is
> correct, and I'm installing as root.
>
> I'm trying to install from ruby-db2-0.4.4
<snip>
Is your Ruby 32 or 64 bit (i.e. what does (2**32).class return)? Was
the underlying DB2 library built as 32 or 64 bit?
My initial guess is that you're trying to link a 64 bit Ruby against a
32 bit DB2 or vice-versa.
Try compiling the following program with "gcc -m64 -ldb2 -o foo foo.c"
and "gcc -m32 -ldb2 -o foo foo.c" and see what happens:
/* foo.c */
int main(){ return 0; }
Regards,
Dan