在配置中使用RVM安装Ruby 2.0.0时出错

时间:2013-05-29 01:52:31

标签: ruby install rvm

我目前正在运行Ruby 1.9.3p134并尝试使用RVM安装Ruby 2.0.0,但是我一直遇到以下错误。我在OSX 10.7.5上运行:

  

运行'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'请阅读/ usr / local / rvm / log / ruby-2.0.0-p195 / 1369791751_configure.log有   运行configure时出错。停止安装。

配置日志如下:

  

[2013-05-29 11:42:31] ./configure configure:警告:无法识别   选项: - without-tcl, - without-tk检查构建系统类型......   x86_64-apple-darwin11.4.2检查主机系统类型...   x86_64-apple-darwin11.4.2检查目标系统类型...   x86_64-apple-darwin11.4.2检查C编译器是否正常工作...没有   configure:error:在/usr/local/rvm/src/ruby-2.0.0-p195': configure: error: C compiler cannot create executables See config.log'中获取更多信息   细节

几天都无法解决这个问题,我需要帮助。

1 个答案:

答案 0 :(得分:2)

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

rvm get stable