在安装RubyGems 1.7.2时,它安装了1.3.5 [英] While installing RubyGems 1.7.2 it installed 1.3.5 instead

查看:106
本文介绍了在安装RubyGems 1.7.2时,它安装了1.3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了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


解决方案

请尝试以下步骤:


  • 删除1.7.2版本

  • sudo apt-get --purge remove ruby​​gems 删除1.3版本

  • 现在使用您之前下载的软件包重新安装1.7.2

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆