2011-05-06 50 views
7

我更新的宝石到最新1.8.1 ,现在当我使用rails命令 我得到的错误如下ruby​​onrails错误时更新到1.8.1宝石

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. 
+0

这些实际上是错误(防止rails运行)还是只是警告? – 2011-05-06 18:15:59

+0

只是警告,轨道功能正常 – Haxrat 2011-05-06 18:19:57

+0

我遇到了同样的问题,临时修复恢复到旧版本的rubygems – daniel 2011-05-06 18:22:43

回答

8

宝石1.8增加了大量的废弃警告,请参阅http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

大部分噪声本身可以用宝石原始的清理非常非常 容易规格 未来:

宝石原始--all - -no-extensions

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

+3

我刚刚为这个过度的“警告”做了一个错误报告: https://rubyforge.org/tracker/index.php?func=detail&aid=29176&group_id=126&atid=575 如果你觉得(和我一样),那么你可能想在那里或在Ryan的博客文章中留下支持性评论, gem“命令是所有经验级别人员的Ruby开发全球用户界面, ,并且有一个特别的责任是不要害怕,特别是关于用户无法做任何事情的事情。 – AlexChaffee 2011-05-06 20:09:08

+1

更新:至少目前来说,更简单的修复方法是使用RubyGems版本1.7.2而不是1.8.1。 '宝石更新--system 1.7.2' 和“注意”垃圾应消失。 – AlexChaffee 2011-05-07 00:14:58