加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 21:54:27 所属栏目:百科 来源:网络整理
导读:我正在尝试安装这样的宝石: C:InstantRailsrails_appsfoodmarksthespotruby 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
我正在尝试安装这样的宝石:
C:InstantRailsrails_appsfoodmarksthespot>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)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读