我搞砸了rvm和ruby版本。 现在它停止给我一个新的rails应用程序'rails new newapp' 我试着用rvm将ruby版本更新到1.9.2。 有什么想法吗?
$ rails new depot
注: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>'
答案 0 :(得分:0)
尝试安装树顶宝石。弃用警告就是这样。这里的相关行是:
/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)