我试图通过RVM安装Ruby 1.9.3 v,当我运行命令我得到这个错误:RVM安装错误,无法安装最新版本的
rvm install 1.9.3
错误:
ruby-1.9.3-p0 - #extracting ruby-1.9.3-p0 to /Users/shaboy/.rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #extracted to /Users/shaboy/.rvm/src/ruby-1.9.3-p0
ruby-1.9.3-p0 - #configuring
Error running ' ./configure --prefix=/Users/shaboy/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-
install-doc --with-libyaml --with-opt-dir=/Users/shaboy/.rvm/usr ',
please read /Users/shaboy/.rvm/log/ruby-1.9.3-p0/configure.log
There has been an error while running configure. Halting the installation.
configure.log
[2012-02-12 16:14:10] ./configure --prefix=/Users/shaboy/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --
disable-install-doc --with-libyaml --with-opt-dir=/Users/shaboy/.rvm/usr
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking whether the C compiler works... no
configure: error: in `/Users/shaboy/.rvm/src/ruby-1.9.3-p0':
configure: error: C compiler cannot create executables
See `config.log' for more details
你能告诉我们日志的内容吗? – Uko 2012-02-12 21:23:39
'/ Users/shaboy/.rvm/log/ruby-1.9.3-p0/configure.log'中有什么? – Telemachus 2012-02-12 21:24:07
刚刚添加的内容 – 2012-02-12 21:34:46