2014-10-05 284 views
0

嘗試在Mac OSX 10.9.5上使用rvm安裝ruby 1.9.3。我已經安裝了最新的命令行工具。 miniruby我遇到了一些奇怪的錯誤。我嘗試以下其他指令使用鐺但這並沒有幫助:rvm在OS X 10.9.5上安裝1.9.3失敗

$ 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 

回答

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 

希望這可以幫助別人。