【发布时间】: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