2014-01-12 117 views
0

我正在运行OSX 10.8。我买了Snow Leopard后,我的Mac已经升级到了Lion,然后升级到了Lion Lion。我试图让我的Ruby on Rails的环境设置,当我运行自制软件的“酿造医生”命令,我得到这个:从Lion升级后在Mountain Lion上重新安装Xcode

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 

预先感谢任何帮助。

回答

0

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

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

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

相关问题