rubyonrails 更新到 gem 1.8.1 时出错
我将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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Gem 1.8 添加了大量弃用警告,请参阅 http://blog。 zenspider.com/2011/05/rubygems-18-is-coming.html
您还可以直接编辑嘈杂的 .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
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)
这些只是弃用警告。 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.