“更新Ruby时运行'__rvm_make install'时出错”

时间:2015-10-13 19:39:29

标签: ruby rvm

当我在OS X 10.11 El Capitan上尝试更新Ruby(现在是2.0.0p645)时,我遇到了这个错误:

rvm install 2.2.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.2.3.
Continuing with compilation. Please read 'rvm help mount' to get more  information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/pashinsky/.rvm/rubies/ruby-2.2.3, this may take a while depending on your cpu(s)...
ruby-2.2.3 - #downloading ruby-2.2.3, this may take a while depending on your connection...
    ...
ruby-2.2.3 - #extracting ruby-2.2.3 to /Users/pashinsky/.rvm/src/ruby-2.2.3....
ruby-2.2.3 - #configuring......................................................-
ruby-2.2.3 - #post-configuration.
ruby-2.2.3 - #compiling.........................................................
ruby-2.2.3 - #installing............
Error running '__rvm_make install',
showing last 15 lines of /Users/pashinsky/.rvm/log/1444763500_ruby-2.2.3/install.log
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems/spec_fetcher.rb:42:in `fetcher'
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems/resolver/installer_set.rb:37:in `initialize'
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems/dependency_installer.rb:430:in `new'
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems/dependency_installer.rb:430:in `resolve_dependencies'
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems/dependency_installer.rb:373:in `install'
from /Users/pashinsky/.rvm/src/ruby-2.2.3/lib/rubygems.rb:558:in `install'
from ./tool/rbinstall.rb:722:in `block (2 levels) in <main>'
from ./tool/rbinstall.rb:721:in `each'
from ./tool/rbinstall.rb:721:in `block in <main>'
from ./tool/rbinstall.rb:757:in `call'
from ./tool/rbinstall.rb:757:in `block in <main>'
from ./tool/rbinstall.rb:754:in `each'
from ./tool/rbinstall.rb:754:in `<main>'
make: *** [do-install-nodoc] Error 1
++ return 2
There has been an error while running make install. Halting the installation.
现在谷歌搜索了几个小时没有运气。 rvm get headrvm get master都无济于事。实际上,我发现的一切都没有(虽然这些是针对略有不同的错误的解决方案)确实有所帮助。

我也试过rvm all do gem errors,但输出没有给我任何线索:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): mapping values are not allowed in this context at line 2 column 30 (Psych::SyntaxError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/config_file.rb:319:in `load_file'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/config_file.rb:192:in `initialize'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in `new'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in `do_configuration'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:46:in `run'
from /usr/bin/gem:21:in `<main>'

0 个答案:

没有答案