2016-12-07 161 views
0

捆綁過程中出現一些錯誤!下面的消息,似乎後包待觀察安裝捆綁安裝錯誤;積極支持

C:\Users\Nir\Desktop\my projects\projectmeal>bundle install 
    Fetching gem metadata from https://rubygems.org/............ 
    Fetching version metadata from https://rubygems.org/... 
    Fetching dependency metadata from https://rubygems.org/.. 
    Resolving dependencies........................... 
    Bundler could not find compatible versions for gem "activesupport": 
     In snapshot (Gemfile.lock): 
     activesupport (= 5.0.0.1) 

     In Gemfile: 
     carrierwave x86-mingw32 was resolved to 0.11.2, which depends on 
      activesupport (>= 3.2.0) x86-mingw32 

    easy_rails_money (~> 0.0.8) x86-mingw32 was resolved to 0.0.8, which depends 
    on 
      activesupport (~> 3.2) x86-mingw32 

     elasticsearch-model x86-mingw32 was resolved to 0.1.9, which depends on 
      activesupport (> 3) x86-mingw32 

     factory_girl_rails x86-mingw32 was resolved to 4.7.0, which depends on 
    factory_girl (~> 4.7.0) x86-mingw32 was resolved to 4.7.0, which depends 
    on 
      activesupport (>= 3.0.0) x86-mingw32 

     factory_girl_rails x86-mingw32 was resolved to 4.7.0, which depends on 
    factory_girl (~> 4.7.0) x86-mingw32 was resolved to 4.7.0, which depends 
    on 
      activesupport (>= 3.0.0) x86-mingw32 

     rspec-rails x86-mingw32 was resolved to 3.5.2, which depends on 
      activesupport (>= 3.0) x86-mingw32 

    Running `bundle update` will rebuild your snapshot from scratch, using only 
    the gems in your Gemfile, which may resolve the conflict. 

,當我嘗試運行一些rails命令狀耙分貝:創建以下錯誤在終端看到

C:\Users\Nir\Desktop\my projects\projectmeal>rake db:create 
Could not find gem 'guard-rspec x86-mingw32' in any of the gem sources listed in 
your Gemfile or available on this machine. 
Run `bundle install` to install missing gems. 

和該過程繼續.....

+0

你安裝紅寶石通過? RVM? – gates

+0

您是否嘗試更新導軌? [檢查此解決方案](http://stackoverflow.com/a/16225564/4414956) – nuaky

+0

它看起來像依賴性錯誤。 –

回答

0

如果bundle說它無法找到兼容的gem版本,那可能是因爲它無處看。你給它的版本號,即迫使其採取優於X,或者不如X.某些版本每顆寶石,或版本

相反的:

gem 'activesupport' 

嘗試:

gem 'activesupport', '3.2.0' 
+0

好的。讓我們來看看!!希望它的作品! –

+0

在安裝fire bundle之前刪除你的Gemfile.lock –

+0

希望你能解決你的錯誤。 –