Something wrong with my ruby

血红的双手。 提交于 2019-12-05 05:56:44

The system ruby installation seems to be messed up. Try removing the offending /Library/Ruby/Site/2.0.0/rubygems.rb (and may be more of enclosing folders)

Ruby have its bundled rubygems at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0 so it should work with these.

Once ruby is alive - you can try upgrading rubygems again by sudo gem update --system if needed, but I advise setting up a ruby version manager like rvm (rvm.io) and leave the system ruby be there only for emergences and backing the brew.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!