ruby - 使用 RVM 安装 Ruby 1.9.3 时出错

标签 ruby rvm

我正在尝试使用 Mountain Lion 在我的工作计算机上安装 Ruby 1.9.3-p385。

我已经安装了 RVM 并运行

rvm install 1.9.3

但是我收到这个错误...

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

这是错误指向的configure.log的内容...

[2013-02-18 10:10:50] ./configure
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/usr/local/rvm/src/ruby-1.9.3-p385':
configure: error: C compiler cannot create executables
See `config.log' for more details

这对我来说有点神秘。如果有人可以提供帮助,我们将不胜感激。

最佳答案

这是railsinstaller默认设置的问题,检查这个答案https://stackoverflow.com/a/12929017/497756

关于ruby - 使用 RVM 安装 Ruby 1.9.3 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14926170/

相关文章:

ruby-on-rails - 如何升级项目的 Ruby 版本?

ruby - 通过 RVM (OSX Mountain Lion) 安装 Ruby 2.0.0-p247 时遇到问题

ruby - 安装 RVM : getting error "There was an error(23)."

ruby-on-rails - 为什么 DataMapper 使用混合与继承?

ruby - 在 Ruby 中覆盖实例变量数组的运算符

ruby-on-rails - 带有 Prawn Gem 的复选框

ruby - RVM 通过 repo 文件自动检测 Ruby 版本的功能在 VSCode 登录 shell 终端中不起作用

ruby-on-rails - 即使设置了错误,Rails Record 也会被保存

ruby-on-rails - 编写此 if 子句的更好/更清晰的方式

ruby - 在 Ubuntu 中全新安装 RVM 不允许我安装 gems(zlib 错误)