Gem.source_index已过时,请使用Specification。我应该重新安装Gem或Rails吗? [英] Gem.source_index is deprecated, use Specification. Should I re-install Gem or Rails?

查看:63
本文介绍了Gem.source_index已过时,请使用Specification。我应该重新安装Gem或Rails吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ubuntu 11上学习RoR。当我尝试生成应用程序时,收到以下消息。我安装不正确吗?

I'm learning RoR on Ubuntu 11. Got the following message when I was trying to generate an app. Did I install something incorrectly?

$ rails generate controller Pages home contact
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:3.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/source.rb:162.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.12/lib/bundler/shared_helpers.rb:84.


推荐答案

这对我有用:降级rubygems:

This worked for me: downgrade rubygems:

gem update --system 1.6.2

在以下位置找到了此建议: Gem.source_index已弃用,请使用规范#34

found this advice at: Gem.source_index is deprecated, use Specification #34

这篇关于Gem.source_index已过时,请使用Specification。我应该重新安装Gem或Rails吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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