启动rails时,捆绑器中的最小4.7.5错误

use*_*900 15 ruby ruby-on-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>'
Run Code Online (Sandbox Code Playgroud)

据我所知,它与bundler有关,我得到的是minitest4.7.5.但是我如何看到安装了minitest 5.0等.

任何帮助将不胜感激.

Mar*_*arc 38

根据有关bundler 1.5.0版的链接,您应该将捆绑包升级到1.5.1或更高版本,以修复在Ruby 1.9和2.0中使用默认宝石的令人讨厌的小错误.我只是在运行bundle install之前运行gem update bundler,现在一切都很好.

  • 确认工作.Travis CI目前使用Ruby 2.1.0安装了Bundler 1.5.0,并且在开始构建之前将其添加到`gem update bundler`为我修复了问题. (4认同)
  • 截至2014年3月,这不起作用. (2认同)