安装命令行工具 Xcode 5
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20833542/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing command line tools Xcode 5
提问by Peter Kaminski
I have tried and tried (looked at many headings for this) and I still don't have an answer to my problem. I am trying to install the Pebble SDK 1.12 and install command line tools of Xcode 5.
我已经尝试并尝试过(为此查看了许多标题),但我仍然没有解决我的问题。我正在尝试安装 Pebble SDK 1.12 并安装 Xcode 5 的命令行工具。
Everytime I try xcode-select --install in terminal I get "Can't install software because it is not currently available in the Software Update server"
每次我在终端中尝试 xcode-select --install 时,我都会收到“无法安装软件,因为它目前在软件更新服务器中不可用”
I have tried to reinstall Xcode and that didn't work. When I got to Xcode-preferences-downloads there isn't a section for the command line tools.
我试图重新安装 Xcode,但没有奏效。当我进入 Xcode-preferences-downloads 时,没有命令行工具部分。
I have also tried installing them from the Developer site but to no avail. The download looks correct and then I go to Xcode to see the preferences and the command line tools aren't listed.
我也尝试从开发人员站点安装它们,但无济于事。下载看起来正确,然后我转到 Xcode 查看首选项,但未列出命令行工具。
Anything you all can suggest?
大家有什么可以推荐的吗?
回答by Ngo Quang Huy
Using xcode-select --install in Terminal and choose install tools
在终端中使用 xcode-select --install 并选择安装工具
回答by Ned Deily
On OS X 10.9, the Command Line Tools
component no longer appears in the Preferences
pane for Xcode 5, unlike on OS X 10.8. Also, the not currently available
message appears to be a bug in OS X 10.9 when the currently installed Command Line Tools
are already up-to-date. If you have a populated /usr/include
directory and /usr/bin/cc --version
gives you something, you're probably fine.
在 OS X 10.9 上,该Command Line Tools
组件不再出现在Preferences
Xcode 5的面板中,这与 OS X 10.8 不同。此外,not currently available
当当前安装Command Line Tools
的已经是最新的时,该消息似乎是 OS X 10.9 中的一个错误。如果您有一个已填充的/usr/include
目录并/usr/bin/cc --version
为您提供了一些东西,那么您可能没问题。