从版本1.3.5更新RubyGems => 1.8.19每当我尝试添加新的宝石时,我都会得到这个:
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:71:in `rescue in rescue in <class:ConfigFile>': uninitialized constant Gem::ConfigFile::RbConfig (NameError)
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:53:in `rescue in <class:ConfigFile>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:49:in `<class:ConfigFile>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:28:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:9:in `require'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:9:in `<top (required)>'
from /usr/local/bin/gem:9:in `require'
from /usr/local/bin/gem:9:in `<main>'
我在require 'rubygems/gem_runner'
下仔细检查了我的/ usr / local / bin / gem文件require 'ruby gems'
因此,在完全安装宝石之前,不确定为什么我会收到此错误。
答案 0 :(得分:1)
我的不好,这是红宝石版本与红宝石宝石不匹配。升级固定它。 感谢