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

Wow*_*Bow 8 ruby macos xcode ios

我在OS X 10.8.3上安装了RVM.该命令rvm -v有效但我尝试执行以下代码时出现一个错误:

\curl -L https://get.rvm.io | bash -s stable --rails # Or, --ruby=2.0.0-p195
Run Code Online (Sandbox Code Playgroud)

这是错误:

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.

Sim*_*n M 15

看起来你已经安装了Xcode的,但不是说RVM需要建立Ruby和其它部件(命令行工具make,gcc等等)

以下是一些说明(摘自此答案):

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

下载窗格的屏幕截图

然后单击Install右侧的按钮安装"命令行工具"软件包.