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

I don't know if this is the best place to ask, but I cannot get perl to install properly. It always quits with the same error:
Use which C compiler? [cc] Checking for GNU cc in disguise and/or its version number... *** WHOA THERE!!! *** Your C compiler "cc" doesn't seem to be working! You'd better start hunting for one and let me know about it.
I know my cc works, and I know its in my path, $CC is set, and I even added it to $paths in the Configure script. Has someone seen this before? Any ideas? Thanks

Replies are listed 'Best First'.
Re: perl 5.005_03 solaris install not working
by Abigail (Deacon) on Jun 28, 2001 at 01:50 UTC
    Are you sure cc works on your Solaris system? Did you buy the compiler from Sun? Anyway, what Configure does to check if whether your compiler works and to see whether it's gcc or not is to compile and run the following program:
    #include <stdio.h> int main() { #ifdef __GNUC__ #ifdef __VERSION__ printf("%s\n", __VERSION__); #else printf("%s\n", "1"); #endif #endif exit(0); }
    You might want to try compiling that from the command line.

    -- Abigail

Re: perl 5.005_03 solaris install not working
by scain (Curate) on Jun 28, 2001 at 00:50 UTC
    It sounds to me like the make file is looking for gcc, but instead is finding solaris cc, and it doesn't like it. One (kludgy) way I've gotten around similar things without getting gcc on the box is to just make a soft link named gcc pointing at cc. It's worth a shot.

    Scott

Re: perl 5.005_03 solaris install not working
by Graham (Deacon) on Jun 28, 2001 at 01:57 UTC
    I got around this by altering the PATH statement to put the path to cc before /usr/ucb
    or you could rename /usr/ucb/cc(which is a a shell script). Both of these are recommended workarounds
    included in the Solaris FAQ

    Alternatively, download a precompiled gcc from www.sunfreeware.com and use that,or a compiled perl package for solaris:
    Sieperl 5.005_03 or the more recent Sieperl 5.6.1

    Other binary packages are also available from the CPAN ports page.