【问题标题】:How to get rid of "NOTE" warning? [duplicate]如何摆脱“注意”警告? [复制]
【发布时间】:2011-05-12 03:49:46
【问题描述】:

我刚刚在 ubuntu 11.04 上通过 RVM 安装了 ruby​​ 1.9.2, 然后 sudo install ruby​​gem。

之后,每当我使用 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.

他们让我很烦。我该如何解决?还是摆脱它?

【问题讨论】:

标签: ruby installation gem


【解决方案1】:

这为我解决了问题:

rvm rubygems current

也听说这对某些人有用:

gem pristine --all --no-extensions

【讨论】:

  • 不行!显示以下错误ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory
【解决方案2】:

我已经阅读了消息:

注意: Gem::Specification#default_executable= 已弃用,没有替代品。它 将在当天或之后删除 2011-10-01。 Gem::Specification#default_executable= 从 /home/shrimpy/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.

一些 Gem 使用了已贬值的 default_executable 东西,Ruby 不喜欢这种东西。

如果你敢的话,编辑那个文件来修复它。

【讨论】:

    猜你喜欢
    • 2015-06-22
    • 2015-02-02
    • 2017-01-25
    • 1970-01-01
    • 1970-01-01
    • 2010-12-13
    • 2010-10-23
    • 2016-02-04
    相关资源
    最近更新 更多