在安装 RubyGems 1.7.2 时,它安装了 1.3.5
我刚刚完成了 Ruby 1.7.2 的安装,由于某种原因我最终得到了 1.3.5 版本
所以现在当我执行此命令时:
gem --version
1.3.5
我的想法是我必须清除 1.3.5 版本并安装 1.7.2新鲜正确吗?
有趣的是,我的文件系统上确实有 1.7.2,地址为
/usr/local/rubygems-1.7.2
How do I un-confused the system to see the right version?
当我尝试通过这样做安装导轨时,整个问题就出现了:
gem install rails
ERROR: Error installing rails:
bundler requires RubyGems version >= 1.3.6
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试按照以下步骤操作:
sudo apt-get --purge remove rubygems
以删除 1.3 版本Try following these steps:
sudo apt-get --purge remove rubygems
to remove the 1.3 version尝试运行
which gem
以查看gem
引用的位置。您可能需要将gem
重新链接到新的。或者您可以尝试使用
gem update --system
进行升级Try running
which gem
to see where thegem
is referencing. You might need to re-linkgem
to the new one.Or you can try to upgrade using
gem update --system