ruby-on-rails – 如何强制宝石升级到gem 1.3.1

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 如何强制宝石升级到gem 1.3.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上.如何强制将系统升级到特定版本?

解决方法

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)
原文链接:https://www.f2er.com/ruby/266717.html

猜你在找的Ruby相关文章