当前位置:  开发笔记 > 编程语言 > 正文

如何强制gem升级到gem 1.3.1

如何解决《如何强制gem升级到gem1.3.1》经验,为你挑选了1个好方法。

我正在尝试安装这样的宝石:

C:\InstantRails\rails_apps\foodmarksthespot>ruby script/plugin install git://github.com/lazyatom/engines.git

返回此消息:

Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again.

但是当我尝试更新时使用:

gem update --system

它说:

Updating RubyGems
Nothing to update

这是在Windows上.如何强制它将系统升级到特定版本?



1> mletterle..:

http://rubyforge.org/forum/forum.php?forum_id=28071

从那里:

NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed. You will need to follow the second set of update
instructions if you see "Nothing to update".

If you have an older version of RubyGems installed, then you can still
do it in two steps:

$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (... here too)

推荐阅读
依然-狠幸福
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有