Phillip Bruce ([EMAIL PROTECTED]) wrote:
> Hi,
> 
>   Sometime back some one gave me the path to a config file in
>   which told cpan where and what compilers that my systems
> uses.
>   Does anyone have any ideas to this.
> 
>   I get this error:
>   /usr/ucb/cc:  language optional software package not
> installed
> 
>   That is because I'm not using cc but gcc instead and I have
> the
>   CC environment variable set to gcc.

Is the variable really exported?  Try

    perl Makefile.PL CC=gcc

instead.

I remember having a Makefile.PL that explicitely overruled the
environment variable by using the compiler that perl was built with.
You can check which compiler that is with the command

    perl -lMConfig -e 'print $Config{cc}'

Finally, is the gcc compiler really in the PATH?  Remember that you can
lose settings depending on how you 'su' yourself.

-- 
                     If we fail, we will lose the war.

Michael Lamertz          | [EMAIL PROTECTED] / [EMAIL PROTECTED]
    Nordstr. 49          | http://www.lamertz.net
    50733 Cologne        | Work: +49 221 3091-121
    Germany              | Priv: +49 221 445420 / +49 171 6900 310

Reply via email to