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

Hi Perl Gurus,

We are reaching a 32 bit limit on our perl process (around 3.7GB). The only version of perl that we have on our Solaris 8 box is 'ELF 32-bit MSB executable SPARC Version 1'
We are scrambling to get a 64 bit version.
Question 1: Would anyone tell me why Sun does not support 64 bit version of perl
Request 1: If anyone has a pre-compiled verion, would you please send it to me. Really appreciate your help
  • Comment on need 64 bit compiled version for Solaris

Replies are listed 'Best First'.
Re: need 64 bit compiled version for Solaris
by Anonymous Monk on Feb 24, 2004 at 07:38 UTC
Re: need 64 bit compiled version for Solaris
by waswas-fng (Curate) on Feb 24, 2004 at 18:11 UTC
    Look at www.sunfreeware.com, they have pre-compiled versions of perl and other useful opensource apps in pkg format for easy installs. Although, if you are using this with mod_perl or other complicated setups it may very well be worthwhile to compile and configure it for yourself. You will need to setup your path to use the new version of perl and perhaps replace the /usr/bin stock perl exec with link to the new version so as not to deal with shabangs exec the old version. In Solaris 9 and 10 I think the stock perl for Solaris is built 64 bit.


    -Waswas
Re: need 64 bit compiled version for Solaris
by hawtin (Prior) on Feb 24, 2004 at 18:58 UTC

    Your best bet is to just rebuild it from the sources. Assuming you have a 64 bit version of gcc make sure you do

    setenv CC "gcc -m64"

    Before the ./Configure; make; make install stuff

    When it asks the compiler is gcc -m64 and the architecture is sun4-solaris-64.

    The perl that comes with Solaris 2.8 is so out of date your life will be easier with one you have built youself anyway.

    If you don't have 64bit gcc then don't try and cross compile it from a 32 bit compiler (you will waste a lot of time). Either find a mate who has the SPARCworks compiler, or better yet download the binaries (assuming you have root permission to install it).