我刚刚在ubuntu 11.04上通过RVM安装了ruby 1.9.2, 然后sudo安装rubygem。
之后,每当我使用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/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.
他们对我很烦。我该怎么办呢?还是摆脱它?
答案 0 :(得分:2)
这不是一个真正的解决方案,但也在那里讨论过: SO: Recent Deprecation Warning
答案 1 :(得分:1)
这为我解决了这个问题:
rvm rubygems current
也听说过这个适用于某些人:
gem pristine --all --no-extensions
答案 2 :(得分:0)
我读过这条消息:
注意: 宝石规格::#的 default_executable = 已弃用,无需替换。它 将被删除或之后 2011-10-01。 宝石规格::#的 default_executable = 来自 /home/shrimpy/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10
有些Gem使用了贬值的default_executable
,Ruby不喜欢。
编辑该文件以修复它,如果你敢的话。