我正在尝试按照“如何使用 RVM 在 Ubuntu 12.04 LTS (Precise Pangolin) 上安装 Ruby on Rails ”中的步骤在 Ubuntu 上安装 Ruby on Rails 。
一切都很好,直到这里:
gabi@ubuntu:~$ rvm rubygems 当前 正在删除旧的 Rubygems 文件... 为 ruby-1.9.3-p385 安装 rubygems-1.8.25 ... 运行 'env GEM_PATH=/home/gabi/.rvm/gems/ruby-1.9.3-p385:/home/gabi/.rvm/gems/ruby-1.9.3-p385@global:/home/gabi/ 时出错。 rvm/gems/ruby-1.9.3-p385:/home/gabi/.rvm/gems/ruby-1.9.3-p385@global GEM_HOME=/home/gabi/.rvm/gems/ruby-1.9.3-p385 /home/gabi/.rvm/rubies/ruby-1.9.3-p385/bin/ruby /home/gabi/.rvm/src/rubygems-1.8.25/setup.rb',请阅读/home/gabi/。 rvm/log/ruby-1.9.3-p385/rubygems.install.log rubygems 的安装未成功完成。
日志文件如下所示:
/home/gabi/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/yaml.rb:36:in `remove_method': method `to_yaml' not defined in Object (Nam
eError)
from /home/gabi/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/yaml.rb:36:in `yamler='
from /home/gabi/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/yaml.rb:33:in `class_eval'
from /home/gabi/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/yaml.rb:33:in `yamler='
from /home/gabi/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/1.9.1/yaml.rb:76:in `<top (required)>'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/custom_require.rb:36:in `require'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/custom_require.rb:36:in `require'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems.rb:680:in `load_yaml'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/config_file.rb:249:in `load_file'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/config_file.rb:190:in `initialize'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/gem_runner.rb:78:in `new'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/gem_runner.rb:78:in `do_configuration'
from /home/gabi/.rvm/src/rubygems-1.8.25/lib/rubygems/gem_runner.rb:51:in `run'
from setup.rb:38:in `<main>'
究竟是什么问题,我该如何解决?