我一直在按照 http://beginrescueend.com/rvm/install/ 上的所有说明进行操作和 http://beginrescueend.com/rvm/basics/
在终端中我可以输入“type rvm”,它说“rvm is a function”所以它应该已经正确安装了。
现在,当我输入类似:rvm install ruby-1.9.2-p318、rvm install 1.9.2 或任何其他似乎运行安装过程的内容时,我收到以下错误
Error running 'make ', please read /Users/Nick/.rvm/log/ruby-1.9.2-p318/yaml/make.log
Error running ' ./configure --prefix=/Users/Nick/.rvm/rubies/ruby-1.9.2-p318 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/Nick/.rvm/usr ', please read /Users/Nick/.rvm/log/ruby-1.9.2-p318/configure.log
There has been an error while running configure. Halting the installation.
ls: /Users/Nick/.rvm/rubies/*/bin/ruby: No such file or directory
所以我打开了 install.log 文件,它说:
configure: error: in `/Users/Nick/.rvm/src/yaml-0.1.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
没有 config.log 文件。
最佳答案
您需要一个 C 编译器,但您似乎没有安装或它不在您的路径中。 XCode提供了一个,你安装了吗?
检查这个类似的问题 Xcode - configure: error: no acceptable C compiler found in $PATH
关于ruby - RVM 无法安装不同版本的 Ruby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10176405/