0

我对此很陌生,如果有一个简单的修复方法,我很抱歉,如果您愿意回答,请逐步具体说明。

这就是我得到的......谢谢!

$ rails -v
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:195:in `merge': can't convert String into Hash (TypeError)
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:195:in `initialize'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb:364:in `new'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb:364:in `configuration'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler/rubygems_integration.rb:25:in `configuration'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler/rubygems_integration.rb:5:in `initialize'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler/rubygems_integration.rb:380:in `new'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler/rubygems_integration.rb:380:in `<module:Bundler>'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler/rubygems_integration.rb:1:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.2.4/lib/bundler.rb:7:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rubygems-bundler-1.1.0/lib/rubygems-bundler/noexec.rb:20:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:9:in `<main>'
4

2 回答 2

1

认为您可以尝试“ rvm reinstall 1.9.3-p392 ” ...不确定这是否可行,但值得一试。我会将此作为评论而不是答案,但我没有足够的代表来做到这一点,我不认为。

于 2013-05-12T20:47:04.503 回答
0

很可能您的 ~/.gemrc 文件中有错字,应该是:

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
于 2013-05-19T15:27:01.637 回答