Derek Lin has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, how can we let Perl 5.12 64bit works with 32 bit module? my Perl is upgraded to 64bit, but Oracle still is 32bit, so the question is: How to compile DBD::Oracle? It should works with Oracle(32bit) on the same server Win2008 64bit. Any suggestions? Thanks.

Replies are listed 'Best First'.
Re: Perl 5.12 64bit and 32bit module
by salva (Canon) on Nov 18, 2010 at 09:38 UTC
    You can't do that!

    Either use a 32bit Perl or look for an Oracle client library compiled for 64bits

Re: Perl 5.12 64bit and 32bit module
by locked_user sundialsvc4 (Abbot) on Nov 18, 2010 at 14:26 UTC

    You should also verify that the DBD::Oracle code (Perl or otherwise...) is capable of being built for 64-bit.   Such modules usually contain “C” code (XS modules...) with low-level structures and other data representations.   Usually, you have to check with the authors on a case-by-case basis.

    Right now, we are still very much at a point where “64-bithood is new,” just as 32-bithood at one time was new.   Even though modern processors have 64-bit internal architecture, they still spend a great deal of their time running 32-bit code and probably will continue doing so for many years to come.