我一直在遵循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 文件。