【问题标题】:Reinstalling Xcode on Mountain Lion after upgrading from Lion从 Lion 升级后在 Mountain Lion 上重新安装 Xcode
【发布时间】:2014-01-31 10:41:15
【问题描述】:

我正在运行 OSX 10.8。我的 Mac 在我拿到它的时候有 Snow Leopard,但后来我升级到了 Lion,然后是 Mountain Lion。我正在尝试设置我的 Ruby on Rails 环境,当我运行 Homebrew 的“brew doctor”命令时,我得到了这个:

Warning: You seem to have osx-gcc-installer installed.
Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and
is an unlicensed distribution of really old Xcode files.
Please install the CLT or Xcode 5.0.1.

Warning: Your compilers are different from the standard versions for your Xcode.
If you have Xcode 4.3 or newer, you should install the Command Line Tools for
Xcode from within Xcode's Download preferences.
Otherwise, you should reinstall Xcode.

所以我卸载并重新安装了 Xcode(现在有 v 5.0.2)和命令行工具,但我仍然收到相同的消息。我试过这样做:

sudo /Developer/Library/uninstall-devtools --mode=xcodedir

但我得到了这样的回应:

sudo: /Developer/Library/uninstall-devtools: command not found

提前感谢您的帮助。

【问题讨论】:

    标签: ruby-on-rails xcode osx-mountain-lion homebrew


    【解决方案1】:

    尝试which gcc 找出您正在使用的 gcc。

    然后运行which -a gcc 以查看您已安装的所有 gcc。

    您可能会发现您使用的是 osx 版本,并且更改了 shell 配置中的路径顺序,例如。 bash.rc 将修复此 brew doctor 错误。

    【讨论】:

      猜你喜欢
      • 2014-09-03
      • 2012-10-11
      • 2012-07-26
      • 2012-08-10
      • 2011-11-30
      • 1970-01-01
      • 1970-01-01
      • 2012-07-24
      • 1970-01-01
      相关资源
      最近更新 更多