繁体   English   中英

为什么安装XCode后RVM找不到编译器和'make'工具?

[英]Why can't RVM find compiler and 'make' tool after installing XCode?

我在OS X 10.8.3上安装了RVM。 命令rvm -v可以工作,但是当我尝试执行以下代码时出现一个错误:

\curl -L https://get.rvm.io | bash -s stable --rails # Or, --ruby=2.0.0-p195

这是错误:

rvm 1.20.13 (stable) by Wayne E. Seguin , Michal Papis  [https://rvm.io/]

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p195.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.

    Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed.

我什至尝试了rvm install 1.9.2但出现了相同的错误。 我也没有运气就安装了Xcode。

看起来您已经安装了Xcode,但不是RVM生成Ruby和其他组件( makegcc等)所需的命令行工具

以下是一些说明(从此答案中获取 ):

Xcode包括一个新的“下载”首选项窗格,用于安装可选组件,例如命令行工具和以前的iOS模拟器。 要打开此窗格,请单击屏幕左上方Apple徽标附近的“ Xcode”按钮,然后单击“首选项”,然后单击“下载”。

下载窗格的屏幕截图

然后通过单击右侧的“ 安装”按钮来安装“命令行工具”软件包。

对于Xcode 5

Xcode -> Preferences -> Download -> Command Line Tools

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM