【问题标题】:Homebrew does not think XCode is installed with old XCode and current HomebrewHomebrew 不认为 XCode 与旧 XCode 和当前 Homebrew 一起安装
【发布时间】:2013-04-09 01:29:06
【问题描述】:

我正在尝试安装 node.js,但仍在运行 OSX 10.6.8,因此我坚持使用 XCode 3(使用 3.2)。

我的第一个问题是我无法让自制软件识别 XCode 3.2。当我运行brew -v doctor 时,我得到以下输出(在修复了一些其他问题之后):

Homebrew 0.9.4
Warning: Setting DYLD_* vars can break dynamic linking. 
Set variables:
    DYLD_LIBRARY_PATH

Warning: Xcode not installed
Most stuff needs Xcode to build: http://developer.apple.com/xcode/

我只能找到 XCode 4.xx 的修复程序,它们对我不起作用。如何将自制软件指向我的 XCode? (我也不太明白应该怎么设置DYLD_LIBRARY_PATH...)

当我运行 brew install node 时,我被告知未安装 xcode(肯定是),还有这个错误:IOError: [Errno 2] No such file or directory: 'out/Release/node'

我看到的修复与 XCode 相关(各种 xcode-select -switch 修复),但它们对我不起作用,因为这些修复适用于 XCode 4.xx。

当我运行详细版本时,还会出现此错误:

creating  ./config.gypi
creating  ./config.mk
sh: /usr/bin/usr/bin/xcodebuild: No such file or directory
/usr/bin/usr/bin/xcodebuild fails with 32512 - Unknown error: 32512

gyp: Error 69 running xcodebuild

非常感谢您对此的帮助。

感谢阅读。

【问题讨论】:

    标签: node.js osx-snow-leopard homebrew xcode3.2


    【解决方案1】:

    虽然 homebrew 对于很多包来说都很棒,但我从来没有在 node.js 中使用过它。可以使用标准OSX binary 安装吗?

    如果您需要使用多个版本的 node.js,nvm 也非常好

    【讨论】:

    • 感谢,这对 node.js 有效!但我不愿将其标记为答案,因为如果可能的话,我仍然希望能够将自制软件指向 XCode。
    【解决方案2】:

    听起来您现在可能已经安装了 Xcode CLI 工具。您可以从 Xcode 首选项中安装它们。

    【讨论】:

      猜你喜欢
      • 2013-04-05
      • 2023-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-23
      • 2013-08-05
      • 2013-12-13
      • 1970-01-01
      相关资源
      最近更新 更多