2011-05-12 5 views
2

ubuntu 11.04、 にRVM経由でRuby 1.9.2をインストールした後、sudo install ruby​​gemをインストールしました。私は宝石を使用するとき「注意」警告を取り除くにはどうすればいいですか?

その後、私は次の注意

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

rvm rubygems current 

も、これはいくつかのために働くことを聞いたことがありますポインタとして、1.9.2には既に 'sudo install ruby​​gem'を置く必要はありません。1.9.2には既に含まれているので、' 'RVMの管理下にある' '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-01以降に削除されます。 Gem ::仕様#default_executable = /home/shrimpy/.rvm/gems/[email protected]/specifications/rake-0.8.7.gemspec:10から呼び出されます。

Rubyが嫌いなものを使用している宝石の中には、償却されたdefault_executableが使われました。

このファイルを編集して、それを修正してください。

+0

うーん。どのようにそれを行う...ルビーの新しい....提案のためのthx .. – jojo

1

は、これは私のためにそれを修正:ちょうど

gem pristine --all --no-extensions 
関連する問題