开发者

How to get rid of "NOTE" warning? [duplicate]

This question already has answers here: How do I fix Rubygems recent deprecation warning? (13 answers) Closed 2 years ago.

I had just installed ruby 1.9.2 via RVM on ubuntu 11.04, and then sudo install rubygem.

after that, whenever i use gem, i will have the following notice

NOTE: Gem::Specification#default_executable= is depreca开发者_StackOverflow社区ted 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@global/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.

They are annoying to me. how can i fix it? or get rid of it?


This fixed it for me:

rvm rubygems current

Have also heard this works for some:

gem pristine --all --no-extensions


I'd read the message:

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@global/specifications/rake-0.8.7.gemspec:10.

Some Gem used the depreciated default_executable thing, which Ruby dislikes.

Edit that file to fix it, if you dare.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜