2013-05-29 82 views
2

我目前正在Ruby 1.9.3p134上运行,并尝试使用RVM安装Ruby 2.0.0,但是我仍然遇到下面的错误。我在OSX 10.7.5上运行:使用RVM安装Ruby 2.0.0,在配置时出错

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.

的配置如下日志:

[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

只是无法解决此得到了几天,我需要帮助。

回答

2

你需要更新您的RVM,它要么解决这个问题,或者告诉你该怎么做,运行以下命令并阅读所有的输出:

rvm get stable 
+0

这并没有为我工作;错误是一个奇怪的参数被提供来配置:“configure --with-arch = -arch x86_64”,而它应该是“configure --with-arch = x86_64”。 问题出在.rvmrc中。如果您遇到此问题,请将.rvmrc重命名为其他内容并重试。 –

相关问题