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

Hello Monastic Gurus...I would like to know how to tell if my perl installed on aix 5.2.2 is 64-bit or not... Also, how to re-compile perl to make it 64-bit...our vac5.2 c-compiler is not liking my DBD-Oracle-1.15 install and I am thinking that since Oracle 9.2.0.4 is 64-bit and aix 5.2.2 is 64 bit, that I must be needing perl 64-bit...thanks in advance for your guru-ified incantations. Jack

Replies are listed 'Best First'.
Re: Perl 64-bit...
by matija (Priest) on Mar 23, 2004 at 20:19 UTC
    Run perl -V. It will list all the compile-time options. In particular, look for use64bitint and use64bitall.

    If you want to recompile perl to make it 64 bit, download the source distribution from CPAN, unpack it, run configure and answer the questions it asks you. Then run make and make install.

    Simple :-)

Re: Perl 64-bit...
by Anonymous Monk on Mar 23, 2004 at 21:16 UTC
    $$ perl -V:.*?64.*? archname64='' d_PRIXU64='undef' d_PRId64='undef' d_PRIi64='undef' d_PRIo64='undef' d_PRIu64='undef' d_PRIx64='undef' d_fpos64_t='undef' d_int64_t='undef' d_off64_t='undef' i64size='8' i64type='__int64' sPRIXU64='"lX"' sPRId64='"ld"' sPRIi64='"li"' sPRIo64='"lo"' sPRIu64='"lu"' sPRIx64='"lx"' u64size='8' u64type='unsigned __int64' use64bitall='undef' use64bitint='undef'
      Thanks AM, here's my output...does this mean I do or do not have perl 64-bit installed on my aix box? eaglet: PROD /home/jlondon > perl -V:.*?64.*? archname64='' d_PRIXU64='define' d_PRId64='define' d_PRIi64='define' d_PRIo64='define' d_PRIu64='define' d_PRIx64='define' d_fpos64_t='define' d_int64_t='define' d_off64_t='define' d_readdir64_r='undef' i64size='8' i64type='long long' readdir64_r_proto='0' sPRIXU64='"llX"' sPRId64='"lld"' sPRIi64='"lli"' sPRIo64='"llo"' sPRIu64='"llu"' sPRIx64='"llx"' u64size='8' u64type='unsigned long long' use64bitall='undef' use64bitint='undef'
Re: Perl 64-bit...
by jweed (Chaplain) on Mar 23, 2004 at 20:19 UTC
    The command perl -V (note the caps V!) gives you the info about the perl flags used to compile. Grep this output for "use64bitint".



    Code is (almost) always untested.
    http://www.justicepoetic.net/
      Thanks for your reply I did perl -V |grep use64bitall ( and got ) use64bitint=undef use64bitall=undef uselongdouble=undef Question: does the undef above mean that I am on 32-bit perl? thanks oh mighty one! Jack