Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell CPAN about path to make and cc

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

I found the path to make and set it to gmake, but I can't find any setting for cc.

I thought I once set this in CPAN/Config.pm (or with o config ...) but can no longer find any setting and don't have enough patience to wade through the thicket to figure out where such a basic thing gets set.

Does anyone know?

like image 726
Lawrence I. Siden Avatar asked Jan 04 '12 22:01

Lawrence I. Siden


1 Answers

cpan doesn't need to know where gcc or equivalent is, because it isn't cpan's job to call it directly. Usually it's Makefile.PL or Build.PL that needs to know that, and it usually will accept the compiler to use as a command line argument. If you add PERLMAINCC=/compiler/to/use to o conf makepl_arg that should do it.

like image 161
Dan Avatar answered Oct 24 '22 18:10

Dan