2014-02-18 54 views
0

爲什麼不能簡單地使用啓動我的服務器導軌小號升級到4.0.3軌道後 - 無法找到「MINITEST」(〜> 5.1)

→ rails s 
/usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'minitest' (~> 5.1) - did find: [minitest-4.7.5] (Gem::LoadError) 

→ bundle exec rails s 
=> Booting Thin 
=> Rails 4.0.3 application starting in development on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
Thin web server (v1.6.1 codename Death Proof) 
Maximum connections set to 1024 
Listening on 0.0.0.0:3000, CTRL+C to stop 

回答

6

我不得不做下面的事情,現在它工作。

→ bundle clean --force 
→ bundle update 
→ rails s 
=> Booting Thin 
=> Rails 4.0.3 application starting in development on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Ctrl-C to shutdown server 
Thin web server (v1.6.1 codename Death Proof) 
Maximum connections set to 1024 
Listening on 0.0.0.0:3000, CTRL+C to stop 
1

好像在你Gemfile你需要minitest (~> 5.1) 但系統上的當前版本爲4.7.5 運行 bundle update minitest 它會更新minitest版本。

+0

謝謝,我已經做到了。 – archie