2011-05-12 127 views
2

我剛剛通過RVM在Ubuntu 11.04, 上安裝了ruby 1.9.2,然後安裝了rubygem。如何擺脫「注意」警告?

在那之後,每當我用的寶石,我會通知如下

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 /home/shrimpy/.rvm/gems/[email protected]/specifications/rake-0.8.7.gemspec:10. 
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 /home/shrimpy/.rvm/gems/ruby-1.9.2-p180/specifications/rubygems-update-1.8.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 /home/shrimpy/.rvm/gems/ruby-1.9.2-p180/specifications/rake-0.8.7.gemspec:10. 

他們討厭我。我該如何解決它?或擺脫它?

+0

剛作爲一個指針,你不需要用1.9.2來執行'sudo install ruby​​gem',因爲1.9.2已經包含了它,並且[你不應該在RVM的控制下使用任何gem的'sudo'](https:// RVM。 beginrescueend.com/rubies/rubygems/)。 –

+0

可能的重複[如何解決Rubygems最近的棄用警告?](http://stackoverflow.com/questions/5949521/how-do-i-fix-rubygems-recent-deprecation-warning) –

回答

2

這不是一個真正的解決辦法,但討論也有: SO: Recent Deprecation Warning

+0

降級爲我工作...嗯...讓我嘗試再生寶石..看看我怎麼去用它 – jojo

0

我讀取消息:

注: 寶石::規格#default_executable = 已被棄用沒有更換。它 將在2011年10月1日或之後 刪除。 Gem ::規格#default_executable = 從 調用/home/shrimpy/.rvm/gems/[email protected]/specifications/rake-0.8.7.gemspec:10

一些寶石使用折舊的default_executable事情,這是Ruby不喜歡。

編輯該文件來修復它,如果你敢。

+0

嗯..不確定如何做到這一點...新的紅寶石.... thx的建議.. – jojo

1

這個固定對我來說:

rvm rubygems current 

也聽到了這個工程的一些:

gem pristine --all --no-extensions