Xcode 4.5 命令行工具 - xcode-select 问题 [英] Xcode 4.5 Command Line Tools - xcode-select issue
问题描述
在 OS X 10.8.2 上安装 Xcode CLT 4.5.1 后,我在安装需要编译的原生 ruby gem 时遇到问题.
After installing Xcode CLT 4.5.1 on OS X 10.8.2, I'm having issues installing native ruby gems which need to compiled.
输出错误与运行 xcrun -find 相同:
The output error is the same as with running xcrun -find:
xcode-select:错误:没有选择 Xcode.使用 xcode-select -switch ,或
有关详细信息,请参阅 xcode-select 联机帮助页 (man xcode-select).
xcode-select: Error: No Xcode is selected. Use xcode-select -switch , or
see the xcode-select manpage (man xcode-select) for further information.
应该 xcode-select 指向哪个 CLT 位置,因为它不再位于/Developer?
To which CLT location should xcode-select point to, since it's no longer at /Developer?
我没有安装 Xcode 应用程序,只有 CLT.
I don't have the Xcode app installed, only CLT.
推荐答案
新位置好像是(一定要以 root 运行):
The new location seems to be (be sure to run as root):
sudo xcode-select -switch /Library/Developer/
这篇关于Xcode 4.5 命令行工具 - xcode-select 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!