How to tell CPAN about the creation path and cc

Running Perl 5.10 CPAN on Solaris with opencsw.org packages, Makefile.PL from packages cannot find the correct path and cc (gcc).

I found a path to create and installed it in gmake, but I can not find any settings for cc.

I thought I installed it once in CPAN / Config.pm (or with o config ...), but I can’t find any settings anymore and don’t have the patience to get through the thicket to find out where such a basic thing is installed.

Somebody knows?

+8
perl cpan solaris-10
source share
3 answers

cpan does not need to know where gcc or the equivalent is because it is not a cpan job to call it directly. Usually it is Makefile.PL or Build.PL , which should know this, and usually it will use the compiler to use as a command line argument. If you add PERLMAINCC=/compiler/to/use to o conf makepl_arg , which should do this.

+10
source share

Extensions must be created using the same tools as Perl, and Perl remembers these tools.

If you have deleted or moved them since then, this may be a problem.

But most likely you did not install the package from your distribution that provides them. Install the missing packages.

+2
source share

In cpan_home /CPAN/Config.pm (or via o conf ):

 'make_arg' => q[CC=/path/to/c-compiler] 
+2
source share

All Articles