2016-07-20 6 views
0

新しいレールプロジェクトを作成しようとしているときに、このエラーが発生しています。新しいレールプロジェクトを作成するときにエラーが発生する

/usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'activesupport' (= 4.2.5) - did find: [activesupport-4.2.4,activesupport-4.2.3,activesupport-4.2.1,activesupport-4.2.0,activesupport-4.1.5,activesupport-4.1.4,activesupport-4.1.1,activesupport-4.0.13,activesupport-4.0.4,activesupport-4.0.0,activesupport-3.2.16,activesupport-3.2.13,activesupport-3.2.11,activesupport-3.2.9,activesupport-3.2.2,activesupport-3.1.3,activesupport-3.0.3] (Gem::LoadError) 
Checked in 'GEM_PATH=/home/techbirds/.rvm/gems/ruby-2.2.1:/home/techbirds/.rvm/gems/[email protected]', execute `gem env` for more information 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1311:in `block in activate_dependencies' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in `each' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1300:in `activate_dependencies' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1282:in `activate' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize' 
    from /usr/share/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:66:in `gem' 
    from /home/techbirds/.rvm/gems/ruby-2.2.1/bin/rails:22:in `<main>' 
    from /home/techbirds/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval' 
    from /home/techbirds/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>' 
+0

あなたは 'rvm'を使用していますか?もしそうなら、 'default'ルビバージョンを選択してください。次に試してください – Emu

+0

はい私はrvmを使用しています。そして、デフォルトのrubyのバージョンは既に選択されています – Nishtha

答えて

0

新しいレールのアプリを作成中のバージョンをレールに思えますrubyはrvmによって使用されていません。
を実行し、このコマンド

rvm list
あなたのルビーのバージョンこのコマンドによってルビーの最新バージョンを選択.Thenお使いのコンピュータで使用されているすべてのルビーのシステムにインストールされたバージョンとを与えるどの

rvm use ruby version 
0

あなたが宝石の依存関係を指定

Could not find 'activesupport' (= 4.2.5) - did find: [activesupport-4.2.4,activesupport-4.2.3 ..... activesupport-3.0.3] (Gem::LoadError) 

をインストールしていないようのバージョンを更新しましたので、あなたはこのエラーを取得しているように思える

rails _4.2.16_ new my_app # change the version accordingly 
# You must have rails 4.2.16 installed 
関連する問題