簡體   English   中英

啟動rails時,捆綁器中的最小4.7.5錯誤

[英]Minitest 4.7.5 error in bundler when starting rails

我對rails來說是全新的,並且我正在嘗試建立一個helloworld應用程序讓我的腳濕透。

我安裝了homebrrew,ruby build和rbenv。 我安裝了pow,然后將它取消了。 基本上玩了一下,然后弄清楚如何制作一個應用程序,並且精彩。 我創造了helloworld。

我知道minitest(5.0.8,4.3.2)安裝在我的主目錄中。

我進入hellowworld目錄,嘗試通過輸入rails -s使應用程序處於活動狀態。

我得到這個最小的錯誤?

/Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-      1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find minitest-4.7.5 in any of the sources (Bundler::GemNotFound)
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:74:in `setup'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:103:in `check'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:109:in `<top (required)>'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rubygems-bundler-1.3.4/lib/rubygems_executable_plugin.rb:4:in `block in <top (required)>'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/executable-hooks-1.2.4/lib/executable-hooks/hooks.rb:50:in `call'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/executable-hooks-1.2.4/lib/executable-hooks/hooks.rb:50:in `block in run'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/executable-hooks-1.2.4/lib/executable-hooks/hooks.rb:49:in `each'
from /Users/smithy/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/executable-hooks-1.2.4/lib/executable-hooks/hooks.rb:49:in `run'
from /Users/smithy/.rbenv/versions/2.0.0-p247/bin/ruby_executable_hooks:10:in `<main>'

據我所知,它與bundler有關,我得到的是minitest4.7.5。 但是我如何看到安裝了minitest 5.0等。

任何幫助將不勝感激。

根據有關bundler 1.5.0版的鏈接,您應該將捆綁包升級到1.5.1或更高版本,以修復在Ruby 1.9和2.0中使用默認寶石的令人討厭的小錯誤。 我只是在運行bundle install之前運行gem update bundler ,現在一切都很好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM