Jak*_*old 4 xcode homebrew upgrade osx-lion
我刚刚发现,升级到OS X Lion之后,我的自制程序不再起作用了.
$ brew install clojure
Warning: Xcode is not installed! Builds may fail!
Error: No such file or directory - /usr/bin/cc
Run Code Online (Sandbox Code Playgroud)
和
$ brew doctor
We couldn't detect gcc 4.2.x. Some formulae require this compiler.
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
You have no /usr/bin/cc. This will cause numerous build issues. Please
reinstall Xcode.
Setting DYLD_LIBRARY_PATH can break dynamic linking.
You should probably unset it.
Run Code Online (Sandbox Code Playgroud)
经过一些谷歌搜索,我发现我应该将Xcode升级到4.1版.问题是,我安装了3.2.5版本,我找不到任何卸载方法.

当我查看App Store时,看起来我根本没有安装Xcode.我担心如果我通过App Store安装它,它会与我当前安装的版本产生冲突.但是我在Applications中找不到它,也找不到任何更新功能.
软件更新不会提示我更新Xcode,我也没有在已安装的软件中看到它.

我该怎么办?
感谢上面的自述文件/Developer,我找到了一种方法来卸载Xcode
$ sudo /Developer/Library/uninstall-devtools --mode=all
Run Code Online (Sandbox Code Playgroud)
编辑:我刚刚运行了Xcode 4的安装程序,它检测到旧版本的Xcode,让我把它移动到/Developer-old.
| 归档时间: |
|
| 查看次数: |
6272 次 |
| 最近记录: |