Installing Ruby 2.0.0 using RVM with errors in configure

I am currently running on Ruby 1.9.3p134 and trying to install Ruby 2.0.0 using RVM, however I keep running into the errors below. I am running on OSX 10.7.5:

Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/opt/sm/pkg/active --disable-install-doc --without-tcl --without-tk --enable-shared' please read /usr/local/rvm/log/ruby-2.0.0-p195/1369791751_configure.log There has been an error while running configure. Halting the installation.

The configure log as below:

[2013-05-29 11:42:31] ./configure configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin11.4.2 checking host system type... x86_64-apple-darwin11.4.2 checking target system type... x86_64-apple-darwin11.4.2 checking whether the C compiler works... no configure: error: in /usr/local/rvm/src/ruby-2.0.0-p195': configure: error: C compiler cannot create executables See config.log' for more details

Just couldn't get around this for days and I need help.


您需要更新RVM,它会解决问题或告诉您如何执行,请运行以下命令并读取所有输出:

rvm get stable
链接地址: http://www.djcxy.com/p/59208.html

上一篇: RVM中的配置错误

下一篇: 在配置中使用RVM安装Ruby 2.0.0时出错