Ruby on rails 从Lion升级后在Mountain Lion上重新安装Xcode
我正在运行OSX 10.8。我的Mac电脑上有雪豹,但后来我升级到了狮子,然后升级到了山狮。我正在尝试设置Ruby on Rails环境,当我运行Homebrew的brew doctor命令时,我得到以下结果:Ruby on rails 从Lion升级后在Mountain Lion上重新安装Xcode,ruby-on-rails,xcode,osx-mountain-lion,homebrew,Ruby On Rails,Xcode,Osx Mountain Lion,Homebrew,我正在运行OSX 10.8。我的Mac电脑上有雪豹,但后来我升级到了狮子,然后升级到了山狮。我正在尝试设置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 unlic
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,现在有了V5.0.2和命令行工具,我仍然收到同样的消息。我试过做:
sudo /Developer/Library/uninstall-devtools --mode=xcodedir
但我得到的回应是:
sudo: /Developer/Library/uninstall-devtools: command not found
提前感谢您的帮助 尝试使用哪个gcc来确定您正在使用哪个gcc
然后运行which-acc来查看您安装的所有gcc
您可能会发现您正在使用osx版本,并且在shell config(例如bash.rc)中更改路径顺序将修复此brew doctor错误