【问题标题】:xcode/perlbrew & building CPAN modules - make options? SDKs? Getting build errorsxcode/perlbrew 和构建 CPAN 模块 - 制作选项?开发工具包?获取构建错误
【发布时间】:2012-08-27 12:04:24
【问题描述】:

我是 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

【问题讨论】:

    标签: xcode macos perl cpan perlbrew


    【解决方案1】:

    啊哈。我发现 fink 正在将其 perl 注入 shell 环境(PERL5LIB、PERLHOME、@INC 等)。多么烦人。我放弃了 fink,转而使用 Mac Ports。

    无论如何,有了一个干净的环境,我可以构建一切。

    【讨论】:

      【解决方案2】:

      因为我从来没有真正进入过 OSX,所以我的猜测是:

      您是否尝试过按照here 的建议安装 MakeMaker?如果你有很多失败,听起来这可能是有意义的。

      不过,CPAN 应该为您做到这一点...

      【讨论】:

        猜你喜欢
        • 2017-09-17
        • 1970-01-01
        • 2014-08-06
        • 2013-05-09
        • 1970-01-01
        • 1970-01-01
        • 2010-10-26
        • 2014-02-02
        • 2017-06-29
        相关资源
        最近更新 更多