更新到gem 1.8.1时出现rubyonrails错误

时间:2011-05-06 18:10:10

标签: ruby-on-rails ruby gem

我将gem更新到最新的1.8.1 现在当我使用rails命令 我有错误如下

NOTE: Gem::Specification#default_executable= is deprecated with no replacement. 
It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/Haxrat/.gem/ruby/1.8/specifications/RedCloth-4.2.7.gemspec:10.

2 个答案:

答案 0 :(得分:8)

Gem 1.8添加了大量弃用警告,请参阅http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

  

大多数噪音来自规格   他们自己可以非常清理   很容易与宝石原始:

     

gem pristine --all --no-extensions

你也可以直接编辑嘈杂的.gemspecs并删除旧方法(例如在你的情况下,删除/Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec的第11行)

答案 1 :(得分:1)

这些只是弃用警告。此版本中不推荐使用rubygems中的大量内容,请阅读http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html以获取更多详细信息。