ruby-on-rails – 无法加载这样的文件 – ruby​​gems.rb

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 无法加载这样的文件 – ruby​​gems.rb前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
好吧,它让我疯狂!我试着运行 ruby / rails.
MacBook-Pro-2:Library me$rvm list
    rvm rubies
       ruby-1.9.3-p194 [ x86_64 ]
       ruby-2.1.0 [ x86_64 ]
    # => - current
    # =* - current && default
    #  * - default
    MacBook-Pro-2:Library me$rvm use 2.1.0
    Using /usr/local/rvm/gems/ruby-2.1.0
    <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb    (LoadError)
from <internal:gem_prelude>:1:in `<compiled>'

   MacBook-Pro-2:Library me$gem list
   <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
   from <internal:gem_prelude>:1:in `<compiled>'

我提供任何信息来解决这个问题.
哪里不对?到目前为止我找不到解决方案.

解决方法

我建议卸载ruby-2.1.0,然后重新安装它,因为它看起来像你当前的安装被破坏.
rvm uninstall 2.1.0
rvm install 2.1.0
原文链接:https://www.f2er.com/ruby/267004.html

猜你在找的Ruby相关文章