我和Gem有一个很棒的麻烦。执行此命令后:
rm -f /usr/local/lib/ruby/gems/1.9.1/cache/*
我不能做任何事情。如果我尝试例如: gem cleanup 我会得到这样的答案:
/usr/local/lib/ruby/gems/1.9.1/gems/gemwhois-0.1/lib/gemwhois.rb:3:in `require': no such file to load -- rubygems/commands/whois (LoadError)
from /usr/local/lib/ruby/gems/1.9.1/gems/gemwhois-0.1/lib/gemwhois.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/gemwhois-0.1/lib/rubygems_plugin.rb:2:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/gemwhois-0.1/lib/rubygems_plugin.rb:2:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1113:in `load'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1113:in `block in <top (required)>'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1105:in `each'
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1105:in `<top (required)>'
from <internal:gem_prelude>:235:in `require'
from <internal:gem_prelude>:235:in `load_full_rubygems_library'
from <internal:gem_prelude>:334:in `const_missing'
from /usr/local/bin/gem:12:in `<main>'
gem -v ,只有 gem 命令...
我在使用Snow Leopard。关于你的最佳解决方案应该是什么?
非常感谢!
答案 0 :(得分:0)
耶!现在它解决了AHAHAH~
我的解决方案是:
cd /usr/local/lib/ruby/gems/1.9.1/gems/
sudo rm -r gemwhois-0.*
Ruby 酷。玩得开心。