我是 OSX 的新手,但几十年来一直在使用 UNIX/Linux。刚刚获得了运行最新 OSX 10.8.1 的新 MBP Retina。
- 安装了fink
- 安装 perlbrew
- 安装了xcode
一切都很好,除了我无法构建很多 CPAN 模块。我猜我需要添加一些神奇的 xcode SDK 来获取所需的库?
这是一个例子:
$ cpanm Wx
...
make[2]: *** No rule to make target `/Users/dfelicia/perl5/perlbrew/perls/perl-5.16.1/lib/5.16.1/darwin-thread-multi-2level/CORE/cc_runtime.h', needed by `RichText.o'.
Stop.
make[1]: *** [subdirs] Error 2
make: *** [subdirs] Error 2
无论构建失败的模块是什么(并且有很多),失败总是与 cc_runtime.h 相关。
我错过了什么?
我使用此处的 perlbrew 参数构建了 perl 5.16.2:http ://wiki.wxperl.info/w/index.php/Mac_OS_X_Platform_Notes