OS X 10.9.5上的rvm install 1.9.3失败

时间:2014-10-05 23:18:56

标签: rvm

尝试在Mac OSX 10.9.5上使用rvm安装ruby 1.9.3。我已经安装了最新的命令行工具。 miniruby我得到了一些奇怪的错误。我尝试按照其他说明使用clang,但这没有帮助:

$ rvm install 1.9.3 --with-gcc=clang

ruby-1.9.3-p547 - #removing src/ruby-1.9.3-p547..
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/redact/.rvm/rubies/ruby-1.9.3-p547, this may take a while depending on your cpu(s)...
ruby-1.9.3-p547 - #downloading ruby-1.9.3-p547, this may take a while depending on your connection...
ruby-1.9.3-p547 - #extracting ruby-1.9.3-p547 to /Users/redact/.rvm/src/ruby-1.9.3-p547....
ruby-1.9.3-p547 - #applying patch /Users/redact/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p547 - #configuring...............................................
ruby-1.9.3-p547 - #post-configuration.
ruby-1.9.3-p547 - #compiling...........................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/redact/.rvm/log/1412548428_ruby-1.9.3-p547/make.log
-- Other runtime information -----------------------------------------------

* Loaded script: ./miniruby

* Loaded features:

    0 enumerator.so

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

1 个答案:

答案 0 :(得分:0)

进行了大量研究并最终在此处找到了解决方案的一些提示:https://github.com/wayneeseguin/rvm/issues/1975

我必须安装不同版本的gcc并使用它运行rvm:

brew install gcc46 # wait a long long time. 
CC=$( find $( brew --prefix gcc46 ) -name gcc-4.6 -perm /u+x ) rvm install 1.9.3

希望这有助于某人。