On Wed, Nov 05, 2003 at 12:17:08PM -0500, Rich Fernandez wrote:
> I'm using CPAN.pm to install Bundle::CPAN (and others) and I get a message
> that says:
> 
> make: cc: Command not found
> 
> How can I specify gcc instead of cc without having to edit each individual
> Makefile?

You need to use the same compiler that was used to build perl.  MakeMaker
(the script that creates the Makefiles) gets that information from the Config
module -->

    % perl -MConfig -le 'print "@Config{ qw/cc ccflags/ }"'
    cc -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING ...

And you shouldn't try to change it.

If you really want to use gcc, I think you'd have to rebuild perl with gcc
first, and then CPAN/MakeMaker will use it automatically.

-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to