I had just done "rvm rubygems 1.3.5" and "gem install rails -v 2.2.2", and both worked correctly and I was able to use rails for awhile.
我刚刚做了“rvm rubygems 1.3.5”和“gem安装rails - v2.2.2”,它们都工作正常,并且我能够使用rails一段时间。
Now it seems like rails and rubygems just suddenly disappeared, so I reinstalled rubygem, but now trying to reinstall rails, I'm getting
现在看起来rails和rubygems突然消失了,所以我重新安装了rubygem,但是现在尝试重新安装rails,我得到了。
ERROR: While executing gem (NameError) uninitialized constant gem::Installer::ENV_PATHS
I get the same error when trying to do
我尝试做的时候也会得到同样的错误
gem update --system
Would appreciate any help.
感谢任何帮助。
And my
和我的
gem list shows rails(2.2.2)
I'm trying to find other people with similar issues, and looks like it might have something to do with GEM PATH but I'm not sure where to go from there. In "gem environment" I get this for GEM PATHS:
我正在寻找其他有类似问题的人,看起来这可能与GEM PATH有关,但我不确定从哪里开始。在“创业板环境”中,我得到了宝石路:
~/.rvm/gems/ruby-1.8.7-p371 <br />
~/.rvm/gems/ruby-1.8.7-p371@global <br />
2 个解决方案
#1
4
I faced same issue with 1.3.5 please upgrade your rubygems version to 1.3.7 or 1.4.2
我面临同样的问题,1.3.5请将您的rubygems版本升级到1.3.7或1.4.2。
if you are using RVM
如果你正在使用RVM
rvm install rubygems 1.4.2
rvm安装rubygems 1.4.2
or else try
或者试试
sudo gem update --system 1.4.2
sudo gem更新——system 1.4.2
#2
7
Type below command in your console.This worked for me.
在控制台输入下面的命令。这为我工作。
rvm @global do gem uninstall -ax rubygems-bundler
#1
4
I faced same issue with 1.3.5 please upgrade your rubygems version to 1.3.7 or 1.4.2
我面临同样的问题,1.3.5请将您的rubygems版本升级到1.3.7或1.4.2。
if you are using RVM
如果你正在使用RVM
rvm install rubygems 1.4.2
rvm安装rubygems 1.4.2
or else try
或者试试
sudo gem update --system 1.4.2
sudo gem更新——system 1.4.2
#2
7
Type below command in your console.This worked for me.
在控制台输入下面的命令。这为我工作。
rvm @global do gem uninstall -ax rubygems-bundler