ruby 如何在 OSX Mavericks 上安装命令行工具
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18216865/
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
How to install command line tools on OSX Mavericks
提问by Kirill
I am running OSX Mavericks (10.9) and while trying to update a bundle in rails, I get the following error message:
我正在运行 OSX Mavericks (10.9) 并且在尝试更新 rails 中的包时,我收到以下错误消息:
"You have to install development tools first."
“你必须先安装开发工具。”
I have Xcode already installed and there seems to be no option to install the tools from within the Xcode 4.6. How can I download and install command line tools via terminal?
我已经安装了 Xcode,但似乎没有选项可以从 Xcode 4.6 中安装这些工具。如何通过终端下载和安装命令行工具?
回答by Kirill
Incase, while trying to update a bundle, you get an error "You have to install development tools first." on OSX Mavericks (OSX 10.9), but you already have Xcode installed, you can still manually install the dev tools via terminal:
以防万一,在尝试更新包时,您会收到错误“您必须先安装开发工具”。在 OSX Mavericks (OSX 10.9) 上,但您已经安装了 Xcode,您仍然可以通过终端手动安装开发工具:
xcode-select --install
xcode-select --install
Do that and follow on-screen instructions. Your problem will be solved.
这样做并按照屏幕上的说明进行操作。您的问题将得到解决。
回答by leviathan
I summarized the steps in this blog entry "How to install command line tools on OSX Mavericks"
我总结了这篇博客文章“如何在 OSX Mavericks 上安装命令行工具”中的步骤
Installing command line tools in OSX 10.9 Mavericks changes slightly compared to previous versions of MAC OSX. Now you don't need to install Xcode. You can install the Command Line Tools as stand alone.
与以前版本的 MAC OSX 相比,在 OSX 10.9 Mavericks 中安装命令行工具略有不同。现在你不需要安装 Xcode。您可以单独安装命令行工具。
Open Terminal

Type “xcode-select --install” in terminal (without quotes)

A pop-up windows will appears asking you about install tools

choose install tools

wait install to finish it will take 30 minutes

打开终端

在终端中输入“xcode-select --install”(不带引号)

将出现一个弹出窗口,询问您有关安装工具的信息

选择安装工具

等待安装完成需要 30 分钟

I summarized the steps in this blog entry "How to install command line tools on OSX Mavericks"
我总结了这篇博客文章“如何在 OSX Mavericks 上安装命令行工具”中的步骤
回答by Alok Yadav
open terminal
and type
xcode-select --installor open finder navigate to
打开终端并输入
xcode-select --install或打开 finder 导航到
/System/Library/CoreServices
/系统/图书馆/核心服务
and open Install Command Line Developer Tools.app
并打开Install Command Line Developer Tools.app

