在安装RubyGems 1.7.2时,它安装了1.3.5 [英] While installing RubyGems 1.7.2 it installed 1.3.5 instead
问题描述
我刚刚完成了Ruby 1.7.2的安装,出于某种原因,我终于使用了1.3.5版本。
所以现在当我执行这个命令时: / p> gem --version
1.3.5
我的想法是,我必须清除1.3.5版本并安装1.7.2新鲜的正确版本?
有趣的是,我在我的文件系统上有1.7.2 /
/usr/local/rubygems-1.7.2
如何解除系统查看正确版本的麻烦?
当我尝试安装rails时,整个问题就出现了:
gem install rails
错误:安装rails出错:
bundler需要RubyGems版本> = 1.3.6
请尝试以下步骤:
sudo apt-get --purge remove rubygems
删除1.3版本
I just went through the install of Ruby 1.7.2 and for some reason I ended up with version 1.3.5
So now when I do this command:
gem --version
1.3.5
My thinking is that I have to purge the 1.3.5 version and install the 1.7.2 fresh correct?
The funny thing is that I do have 1.7.2 on my file system at
/usr/local/rubygems-1.7.2
How do I un-confuse the system into seeing the right version?
The whole issue is stemming when I try to install rails by doing this:
gem install rails
ERROR: Error installing rails:
bundler requires RubyGems version >= 1.3.6
Try following these steps:
- Remove version 1.7.2
sudo apt-get --purge remove rubygems
to remove the 1.3 version- Now re-install 1.7.2 using the downloaded package you had before
这篇关于在安装RubyGems 1.7.2时,它安装了1.3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!