2012-06-05 109 views
2

我最近升级到狮子和Xcode的4.3,现在任何东西,我用Perl做到这一点,需要C编译器未能建立:的XCode 4.3 - perl的无法找到XCode的C编译器升级后,4.2

root# perl Makefile.PL 
Couldn't find your C compiler 
Compilation failed in require at Makefile.PL line 5. 
BEGIN failed--compilation aborted at Makefile.PL line 5. 

我的C编译器设置为:

root# perl -V:cc 
cc='llvm-gcc-4.2'; 

有什么事情改变了的XCode 4.3?我怎么设置C编译器的Perl现在?

回答

5

新版本的Xcode不会安装二进制文件(例如C编译器),它们可以在您的$PATH中找到。您需要转到XCode首选项的“下载”部分,然后选择安装命令行工具。

更多信息from Apple(查找“命令行工具是可选的”)。

0

如果您认为它们兼容,可以创建符号链接或编辑Config.pm(path = perl -MConfig -E'say $INC{"Config.pm"}')。