Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ruby-1.9.2无法安装-找不到编译器和“make”工具_Ruby_Macos_Rvm - Fatal编程技术网

ruby-1.9.2无法安装-找不到编译器和“make”工具

ruby-1.9.2无法安装-找不到编译器和“make”工具,ruby,macos,rvm,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 b

每次运行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.

我刚刚开始尝试学习编程,我明白我需要能够安装和运行不同版本的ruby,而不是默认的1.8.0版本。我几乎不知道我在做什么,所以请不要回答任何问题。提前感谢。

rvm正在查找gcc编译器无法找到的错误非常明显。 解决此问题的两种方法: 1. 安装特定于osx表单的gcc编译器

二,

安装Xcode

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

这一行说明了一切:找不到编译器和“make”工具-确保安装了Xcode和/或命令行工具。建议在此处安装Xcode。