从Lion升级后,在Mountain Lion上重新安装Xcode

时间:2014-01-12 18:21:28

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

我正在运行OSX 10.8。当我拿到它时,我的Mac上有雪豹,但我已经升级为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

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

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

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

您可能会发现您正在使用osx版本并在shell配置中更改路径顺序,例如。 bash.rc将解决此brew doctor错误。