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: 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/Users/beracus/.rvm/rubies/ruby-1.9.3-p125/ の activate_dependencies のブロック内/Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/ の 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 内rubygems/specification.rb:750: activate' from /Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:780:in/Users/beracus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766 からの activate_dependencies のブロック内: 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' from /Users/beracus/.rvm/gems/ruby-1.9.3-p125/bin/rails:18:in `' Mac-Pro:~ beracus$ rvm -v

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

Mac-Pro:~ beracus$

4

0 に答える 0