无法加载此类文件 - ruby​​gems.rb

时间:2022-09-18 23:36:39

OK, it drives me crazy! I try to run ruby / rails.

好吧,它让我抓狂!我尝试运行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>'

I provide any information to solve that problem. What is wrong? I can't find a solution so far.

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

1 个解决方案

#1


22  

I would recommend uninstalling ruby-2.1.0 and then reinstalling it as it seems like your current installation is corrupted.

我建议卸载ruby-2.1.0,然后重新安装它,因为你的当前安装似乎已损坏。

rvm uninstall 2.1.0
rvm install 2.1.0

#1


22  

I would recommend uninstalling ruby-2.1.0 and then reinstalling it as it seems like your current installation is corrupted.

我建议卸载ruby-2.1.0,然后重新安装它,因为你的当前安装似乎已损坏。

rvm uninstall 2.1.0
rvm install 2.1.0