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

I am trying to install Perl on my Solaris 7.
It stops and fails after I answer the question:
Use which C compiler[cc] then after I hit carriage return:
/usr/ucb/cc: language optional software package not installed the 'cc' compiler doesnt seem to be working Confiugre :gcc: not found You will neeed to find a working C compiler. Either purchase and install the C compiler or for a free C compiler try //gcc.gnu.org
I actually do have a </code> /usr/ucb/cc </code> in my Solaris system and wonder why its not picking it up?? I even tried other paths where I had cc when it asked for a C compiler such as  /opt/SUNWspro/bin/cc and it still gives me same errors. Anyone have any helpful advice so I can get Perl 5.6.1 for Unix installed??

Replies are listed 'Best First'.
Re: Installing Perl on Unix
by Abigail-II (Bishop) on Aug 06, 2002 at 11:08 UTC
    /usr/ucb/cc isn't much of a compiler on its own. Is SUNWspro properly installed on your system? If so, try giving -Dcc=/opt/SUNWspro/bin/cc to Configure.

    Also important is this quote from README.solaris:

    You don't need to have /usr/ucb/ in your PATH to build perl.  If you
    want /usr/ucb/ in your PATH anyway, make sure that /usr/ucb/ is NOT
    in your PATH before the directory containing the right C compiler.
    
    Make sure you read README.solaris.

    Abigail

      Yes SUNSspro is on my machine how do I know if it is working okay?? Also I dont see /usr/ucb in my root .cshrc
        The fact "/usr/ucb" is or isn't in your root .cshrc isn't very relevant. It matters where it is in your PATH when you are running Configure (and make).

        To test whether your C compiler is installed correctly, try compiling something.

        Abigail

Re: Installing Perl on Unix
by jlongino (Parson) on Aug 06, 2002 at 14:50 UTC
    Check out Solaris Freeware. You can get a binary install of gcc-2.95.3-sol7-sparc-local.gz from there, install it using gunzip, pkgadd, and then hopefully, compile Perl with gcc (you might also want to get gmake and gtar). Currently they only have a binary install for Perl 5.80 for SPARC/Solaris 2.7, otherwise I'd suggest it. Not that anything's wrong with it, but you asked about version 5.6.1.

    I'd concur with Abigail-II that Sun's C compiler isn't too hot--gcc has been less problematic for our systems.

    --Jim

    Update: make sure you download the correct Solaris version.

Re: Installing Perl on Unix
by hans_moleman (Beadle) on Aug 06, 2002 at 15:18 UTC

    Another poster mentioned Sun Freeware, in my book the Sun-provided freeware binaries are of better quality than the stuff at sunfreeware.com. Also, don't forget to grab the binutils package!

    In addition, you can look at Active State's binary distribution of Perl 5.6.1 - if you want something quick, the binary distribution is pretty painless. Not sure if Solaris 7 is supported, we're on 8 at my shop.