On Dec 11, 2003, at 7:41 AM, glidden, matthew wrote:
I'm using the CPAN module to build my modules and have hung up just trying
install Bundle::CPAN. Installing Data::Dumper, for example, shows a 'cc:
command not found' error during make. My system uses gcc instead of cc, but
I'm not sure where to set this option. Tried setting the CC env setting and
looking through .cpan/CPAN/MyConfig.pm, but no setting there seems right,
either. Where can I change the cc setting?
what you might want to check is:
perl -MConfig -e 'print "$Config{cc}\n"';
a la vladimir: 52:] perl -MConfig -e 'print "$Config{cc}\n"'; gcc vladimir: 53:]
and/or -
[jeeves: 9:] perl -MConfig -e 'print "$Config{cc}\n"'; cc [jeeves: 10:] which cc /usr/bin/cc [jeeves: 11:] ls -li /usr/bin/cc 1749093 lrwxr-xr-x 1 root wheel 7 28 Nov 18:14 /usr/bin/cc -> gcc-3.3 [jeeves: 12:]
It is POSSIBLE that the version of perl you have was built 'by the vendor' and Might have the line in the Config.pm that is
cc='cc'
eg:
vladimir: 63:] ^more^grep cc
./perl -V | grep cc
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
11374 Make h2ph grok ccsymbols fo the form 1234L, 1234ULL etc
vladimir: 64:]
So you might want to work out a way that you have say
PATH = $HOME/bin:$PATH
and in your home/bin directory put in the symbolic link for
cc -> /opt/gnudev/bin/gcc
or where ever you have it installed. This way you avoid
a. bit twiddling the Config.pm b. have the cheap-cheat that is not an ENV trick
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>