2

我目前在 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 运行配置时出错。停止安装。

配置日志如下:

[2013-05-29 11:42:31] ./configure 配置:警告:无法识别的选项:--without-tcl,--without-tk 检查构建系统类型... x86_64-apple-darwin11.4.2 检查主机系统类型... x86_64-apple-darwin11.4.2 检查目标系统类型... x86_64-apple-darwin11.4.2 检查 C 编译器是否工作... no configure: error: in /usr/local/rvm/src/ruby-2.0.0-p195': configure: error: C compiler cannot create executables Seeconfig.log' 了解更多详情

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

4

1 回答 1

2

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

rvm get stable
于 2013-05-29T21:19:44.557 回答