0

每当我尝试开始一个新的 Rails 项目时,我都会不断收到错误消息。我是 Ruby 的新手,以前从未使用过 Rails。我见过类似的问题,但是我无法扣除为了让框架正常运行而需要更改的内容。

这就是我所处的位置以及我得到的...

Mac-Pro:rails beracus$ rails new my_first_app
/Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find sprockets (~> 2.1.2) amongst [RedCloth-4.2.9, actionmailer-3.2.3, actionpack-3.2.3, activemodel-3.2.3, activerecord-3.2.3, activeresource-3.2.3, activesupport-3.2.3, arel-3.0.2, builder-3.0.0, bundler-1.1.3, erubis-2.7.0, hike-1.2.1, i18n-0.6.0, journey-1.0.3, json-1.6.6, mail-2.4.4, mime-types-1.18, multi_json-1.3.2, polyglot-0.3.3, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2, rack-test-0.6.1, rails-3.2.3, railties-3.2.3, rake-0.9.2.2, rdoc-3.12, rubygems-bundler-0.9.0, rubygems-update-1.8.23, rvm-1.11.3.3, sprockets-2.4.0, sqlite3-1.3.6, thor-0.14.6, tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.33, yard-0.7.5] (Gem::LoadError)
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:777:in `block in activate_dependencies'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:780:in `block in activate_dependencies'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:in `gem'
    from /Users/beracus/.rvm/gems/ruby-1.9.3-p125/bin/rails:18:in `<main>'
Mac-Pro:rails beracus$

回应帕尼瓦尼

Mac-Pro:~ beracus$ ruby​​ -v ruby​​ 1.9.3p125 (2012-02-16 修订版 34643) [x86_64-darwin10.8.0] Mac-Pro:~ beracus$ rails -v /Users/beracus/.rvm/rubies/ ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find sprockets (~> 2.1.2) amongst [RedCloth-4.2.9, actionmailer-3.2.3, actionpack-3.2.3, activemodel-3.2.3, activerecord-3.2.3, activeresource-3.2.3, activesupport-3.2.3, arel-3.0.2, builder-3.0.0, bundler-1.1.3, erubis-2.7.0, hike-1.2.1, i18n-0.6.0, journey-1.0.3, json-1.6.6, mail-2.4.4, mime-types-1.18, multi_json-1.3.2, polyglot-0.3.3, rack-1.4.1, rack-cache-1.2, rack-ssl-1.3.2, rack-test-0.6.1, rails-3.2.3, railties-3.2.3, rake-0.9.2.2, rdoc-3.12, rubygems-bundler-0.9.0, rubygems-update-1.8.23, rvm-1.11.3.3, sprockets-2.4.0, sqlite3-1.3.6, thor-0.14.6, tilt-1.3.3, treetop-1.4.10, tzinfo-0.3.33, yard-0.7.5] (Gem::LoadError) from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:777:inblock in activate_dependencies' 来自 /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/ lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in each' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:inactivate_dependencies' 来自 /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/ rubygems/specification.rb:750:in activate' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:780:inblock in activate_dependencies' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:在each' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in/Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in 的 activate_dependencies 中activate' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:ingem' 来自 /Users/beracus/.rvm/gems/ruby-1.9.3-p125/bin/rails:18:in `' Mac-Pro:~ beracus$ rvm -v

rvm 1.13.0(最新)作者 Wayne E. Seguin,Michal Papis [https://rvm.io/]

Mac-Pro:~ beracus$

4

0 回答 0