2011-05-06 63 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