我正在尝试使用 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/