私は最初の Rails アプリに取り組んでいます。Rails 3.2.13 から Rails 4 に更新したばかりで、今は ruby 2.0.0 をインストールしようとしていましたが、同じエラーが発生して一日中立ち往生しています。ここSOや他の場所でいくつかの質問を見つけました。それらの多くには受け入れられた回答がありますが、解決策はどれもうまくいきませんでした。
結局、すべてのRubyバージョンを完全に削除し、rvmを完全に削除することになりましたが、最初から再インストールしようとしても同じエラーが発生します。私はOSX 10.8.4を使用しています。
エラー:
Extracting rubygems-2.0.6 ...
Removing old Rubygems files...
Installing rubygems-2.0.6 for ruby-2.0.0-p247......................
Error running 'env GEM_PATH=/Users/arielpontes/.rvm/gems/ruby-2.0.0-p247:/Users/arielpontes/.rvm/gems/ruby-2.0.0-p247@global:/Users/arielpontes/.rvm/gems/ruby-2.0.0-p247:/Users/arielpontes/.rvm/gems/ruby-2.0.0-p247@global GEM_HOME=/Users/arielpontes/.rvm/gems/ruby-2.0.0-p247 /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -d /Users/arielpontes/.rvm/src/rubygems-2.0.6/setup.rb',
please read /Users/arielpontes/.rvm/log/ruby-2.0.0-p247/1375132582_rubygems.install.log
Installation of rubygems did not complete successfully.
Saving wrappers to '/Users/arielpontes/.rvm/wrappers/ruby-2.0.0-p247'...
ログ:
[2013-07-29 18:23:54] /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
Exception `LoadError' at /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems.rb:1091 - cannot load such file -- rubygems/defaults/ruby
/Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/yaml.rb:4:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require': dlopen(/Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/psych.bundle, 9): Library not loaded: /usr/local/opt/libyaml/lib/libyaml-0.2.dylib (LoadError)
Referenced from: /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/psych.bundle
Reason: image not found - /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.4.0/psych.bundle
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require'
from /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:1:in `<top (required)>'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require'
from /Users/arielpontes/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/yaml.rb:5:in `<top (required)>'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/core_ext/kernel_require.rb:51:in `require'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems.rb:600:in `load_yaml'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/config_file.rb:313:in `load_file'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/config_file.rb:190:in `initialize'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/gem_runner.rb:66:in `new'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/gem_runner.rb:66:in `do_configuration'
from /Users/arielpontes/.rvm/src/rubygems-2.0.6/lib/rubygems/gem_runner.rb:46:in `run'
from setup.rb:45:in `<main>'
誰でもそれを修正するために何ができるかについて何か考えがありますか?? この質問の解決策を試しましたが、役に立ちませんでした。ありがとう。