如何在OSX Mavericks上安装命令行工具 [英] How to install command line tools on OSX Mavericks

查看:81
本文介绍了如何在OSX Mavericks上安装命令行工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行OSX Mavericks(10.9),并且尝试在rails中更新包时,出现以下错误消息:

I am running OSX Mavericks (10.9) and while trying to update a bundle in rails, I get the following error message:

您必须先安装开发工具."

"You have to install development tools first."

我已经安装了Xcode,似乎没有选择从Xcode 4.6内安装工具的选项.如何通过终端下载和安装命令行工具?

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?

推荐答案

以防万一,在尝试更新捆绑软件时,出现错误必须首先安装开发工具".在OSX Mavericks(OSX 10.9)上,但是您已经安装了Xcode,仍然可以通过终端手动安装开发工具:

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:

xcode-select --install

执行此操作,然后按照屏幕上的说明进行操作.您的问题将得到解决.

Do that and follow on-screen instructions. Your problem will be solved.

这篇关于如何在OSX Mavericks上安装命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆