Subject: | Inline::C doesn't find c compiler with decimal point in name |
Date: | Thu, 9 Sep 2010 14:12:05 -0600 |
To: | bug-Inline [...] rt.cpan.org |
From: | Derek Lamb <derek [...] boulder.swri.edu> |
On a Mac running OS X 10.6.4, trying to install Inline::C. This is using perl 5.8.9 (from MacPorts). $Config{cc} gives '/usr/bin/gcc-4.2', which exists. However, Inline::C says it cannot find the compiler. I believe this is because the $comp string in Inline::C/Makefile.PL strips off anything after the '.', believing it to be a filename extension.
The following command prints "found":
perl -e 'use Config; unless(-e $Config{cc}){print "not ";} print "found\n";'
telling it to ignore that warning allows it to pass make test and install just fine (I think so far).
Derek