使用RVM安装Ruby 2.0.0,但配置错误 [英] Installing Ruby 2.0.0 using RVM with errors in configure

查看:127
本文介绍了使用RVM安装Ruby 2.0.0,但配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

运行'env LDFLAGS = -L/opt/sm/pkg/active/lib时出错 CFLAGS = -I/opt/sm/pkg/活动/包含CPATH =/opt/sm/pkg/活动/包含 ./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时出错.停止安装.

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配置:警告:无法识别 选项:--without-tcl,--without-tk检查构建系统类型... x86_64-apple-darwin11.4.2检查主机系统类型... x86_64-apple-darwin11.4.2检查目标系统类型... x86_64-apple-darwin11.4.2检查C编译器是否正常工作...否 配置:错误:在/usr/local/rvm/src/ruby-2.0.0-p195': configure: error: C compiler cannot create executables See config.log'中了解更多 详细信息

[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 Seeconfig.log' for more details

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

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

推荐答案

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

you need to update your RVM, it will either fix the problem or tell you what to do, run the following command and read all the outputs:

rvm get stable

这篇关于使用RVM安装Ruby 2.0.0,但配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆