gpt4 book ai didi

ruby-on-rails - 更新到 gem 1.8.1 时出现 ruby​​onrails 错误

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

我把gem更新到最新的1.8.1现在当我使用 rails 命令时我得到如下错误

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 /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.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 /Users/Haxrat/.gem/ruby/1.8/specifications/RedCloth-4.2.7.gemspec:10.

最佳答案

Gem 1.8 添加了许多弃用警告,请参阅 http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html

Most noise coming from the specs themselves can be cleaned up very very easily with gem pristine:

gem pristine --all --no-extensions

您也可以直接编辑嘈杂的 .gemspecs 并删除旧方法(例如,在您的情况下,删除/Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec 的第 11 行)

关于ruby-on-rails - 更新到 gem 1.8.1 时出现 ruby​​onrails 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5915338/

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