ruby-1.9.2将无法安装 - 无法找到编译器和'make'工具

时间:2013-08-23 02:20:16

标签: ruby macos rvm

每次运行rvm install ruby-1.9.2-p320时,都会收到以下消息。

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed.
Requirements installation failed with status: 11.

我刚刚开始尝试学习编程,我知道我需要能够安装和运行不同于默认1.8.something的不同版本的ruby。我几乎不知道我在做什么,所以请愚蠢地回答任何问题。提前谢谢。

1 个答案:

答案 0 :(得分:2)

由于rvm正在寻找gcc编译器的错误非常明显,因此无法找到它。 解决这个问题的两种方法: 1)   安装特定于您的osx表单的gcc编译器 https://github.com/kennethreitz/osx-gcc-installer

2)

  1. 安装Xcode

  2. 由于最新版本的xcode不再附带命令行工具,请安装命令行工具

  3. Xcode 4.4 and later install Command Line Tools

    https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_3.html