“铁路新车厂”给我带来了一堆错误
我搞乱了 rvm 和 ruby 版本。 现在它不再给我一个带有“rails new newapp”的新 Rails 应用程序 我尝试使用rvm将ruby版本更新到1.9.2。 有什么想法吗?
$ 铁路新车厂 注意:Gem::Specification#default_executable= 已弃用且无替代品。将于 2011 年 10 月 1 日或之后删除。
Gem::Specification#default_executable= called from /Users/Hw/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find treetop (~> 1.4.8) amongst [abstract-1.0.0, actionmailer-3.0.7, actionpack-3.0.7, activeadmin-0.2.1, activemodel-3.0.7, activerecord-3.0.7, activeresource-3.0.7, activesupport-3.0.7, arel-2.0.9, bcrypt-ruby-2.1.4, builder-2.1.2, bundler-1.0.13, devise-1.3.4, erubis-2.6.6, formtastic-1.2.3, haml-3.1.1, has_scope-0.5.0, highline-1.6.1, i18n-0.5.0, inherited_resources-1.2.2, inherited_views-0.0.2, jruby-0.0.1, mail-2.3.0, mail-2.2.19, meta_search-1.0.5, mime-types-1.16, oauth-0.4.4, orm_adapter-0.0.5, polyglot-0.3.1, rack-1.2.2, rack-mount-0.6.14, rack-test-0.5.7, rails-3.0.7, railties-3.0.7, rake-0.8.7, responders-0.6.4, rvm-1.6.9, thor-0.14.6, twurl-0.6.3, tzinfo-0.3.27, vmail-1.6.5, warden-1.0.4, will_paginate-3.0.pre2] (Gem::LoadError) from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:748:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:751:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:751:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1183:in `gem' from /Users/Hwa/.rvm/gems/ruby-1.9.2-p180/bin/rails:18:in `<main>'
I messed up with rvm and ruby version.
Now it stopped giving me a new rails app with 'rails new newapp'
I tried to update ruby version to 1.9.2 with rvm.
Any idea?
$ rails new depot
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/Hw/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10. /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find treetop (~> 1.4.8) amongst [abstract-1.0.0, actionmailer-3.0.7, actionpack-3.0.7, activeadmin-0.2.1, activemodel-3.0.7, activerecord-3.0.7, activeresource-3.0.7, activesupport-3.0.7, arel-2.0.9, bcrypt-ruby-2.1.4, builder-2.1.2, bundler-1.0.13, devise-1.3.4, erubis-2.6.6, formtastic-1.2.3, haml-3.1.1, has_scope-0.5.0, highline-1.6.1, i18n-0.5.0, inherited_resources-1.2.2, inherited_views-0.0.2, jruby-0.0.1, mail-2.3.0, mail-2.2.19, meta_search-1.0.5, mime-types-1.16, oauth-0.4.4, orm_adapter-0.0.5, polyglot-0.3.1, rack-1.2.2, rack-mount-0.6.14, rack-test-0.5.7, rails-3.0.7, railties-3.0.7, rake-0.8.7, responders-0.6.4, rvm-1.6.9, thor-0.14.6, twurl-0.6.3, tzinfo-0.3.27, vmail-1.6.5, warden-1.0.4, will_paginate-3.0.pre2] (Gem::LoadError) from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:748:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:751:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:751:in `block in activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `each' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:745:in `activate_dependencies' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:730:in `activate' from /Users/Hwa/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1183:in `gem' from /Users/Hwa/.rvm/gems/ruby-1.9.2-p180/bin/rails:18:in `<main>'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试安装树顶宝石。弃用警告就是这样。这里的相关行是:
Try installing the treetop gem. The deprecation warnings are just that. The relevant line here is: