搜索

首页  >  问答  >  正文

ios - 更新了gem后怎么输入都是这个错误

chenfengdeMacBook-Pro:~ chenfeng$ gem install cocoapods
/Users/chenfeng/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:17:in `require': cannot load such file -- stringio (LoadError)

from /Users/chenfeng/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:17:in `<top (required)>'
from /Users/chenfeng/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:1333:in `require'
from /Users/chenfeng/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:1333:in `<module:Gem>'
from /Users/chenfeng/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:116:in `<top (required)>'
from <internal:gem_prelude>:1:in `require'
from <internal:gem_prelude>:1:in `<compiled>'

求大神指点

黄舟黄舟2771 天前463

全部回复(2)我来回复

  • PHPz

    PHPz2017-04-18 09:53:34

    应该是源的问题,使用官方源的请检查梯子工作是否正常,不然还是换成 ruby-china 的源吧

    回复
    0
  • 高洛峰

    高洛峰2017-04-18 09:53:34

    我也遇到同一个问题,请问解决了吗,求指点指点QQ:823895643

    回复
    0
  • 取消回复