gpt4 book ai didi

ruby - 如何修复 Rubygems 最近的弃用警告?

转载 作者:数据小太阳 更新时间:2023-10-29 06:33:53 25 4
gpt4 key购买 nike

我最近运行了更新:

gem update --system
gem update

现在,每次我加载 gem 时都会收到很多弃用警告。例如,rails console:

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 /Users/user/.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 /Users/user/.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 /Users/user/.rvm/gems/ruby-1.9.2p180@global/specifications/rake-0.8.7.gemspec:10.
Loading development environment (Rails 3.0.7)
ruby-1.9.2-p180 :001 > exit

我使用 RVM、Ruby 1.9.2 和 Rubygems 1.8.1。有什么办法可以解决这个问题?恢复到旧版本的 ruby​​gems?

最佳答案

我不得不降级到 1.6.2。那些通知绝对是荒谬的。他们使最新版本完全无法使用。确实应该有办法禁用它们,但在那之前:

sudo gem update --system 1.6.2

关于ruby - 如何修复 Rubygems 最近的弃用警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5949521/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com