rubyonrails 更新到 gem 1.8.1 时出错

发布于 2024-11-05 17:14:29 字数 563 浏览 0 评论 0原文

我将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.

I update gem to the latest 1.8.1
and now when i use rails command
i got errors as below

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

长途伴 2024-11-12 17:14:29

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

大部分噪音来自规格
自己可以清理得非常非常
轻松使用宝石原始:

gem pristine --all --no-extensions

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

Gem 1.8 adds lots of deprecation warnings, see 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

You could also directly edit the .gemspecs that are noisy and remove the old methods (e.g. in your case, remove line 11 of /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.7.2.gemspec)

你与清晨阳光 2024-11-12 17:14:29

这些只是弃用警告。 rubygems 中的很多内容在此版本中已被弃用,请阅读 http:// /blog.zenspider.com/2011/05/rubygems-18-is-coming.html 了解更多详细信息。

These are just deprecation warnings. Lots of stuff in rubygems is deprecated in this version, read http://blog.zenspider.com/2011/05/rubygems-18-is-coming.html for more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文