在bundler启动rails时,错误最小为4.7.5

时间:2022-05-02 00:16:12

I'm brand new to rails, and litelarry am trying to set up a helloworld app to get my feet wet.

我是rails的新手,litelarry正试图建立一个helloworld应用程序来让我的脚湿。

I installed homebrrew, ruby build and rbenv. I installed pow, and then unistalled it. basically played around, and then worked out how to make an application, and wonderful. I created helloworld.

我安装了homebrrew, ruby build和rbenv。我安装了pow,然后统一了它。基本上是在周围玩耍,然后想出如何制作一个应用程序,非常棒。我创建的helloworld。

I know minitest (5.0.8, 4.3.2) is installed in my home directory.

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

I cd into the hellowworld directory, and try to make the app active by typing rails -s.

我将cd存储到hellowworld目录中,并尝试通过输入rails -s来使应用程序处于活动状态。

I get this minitest error?

我得到了最小的误差?

/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>'

As far as I can see it relates to bundler, minitest4.7.5 is missing which I get. BUT how do I see that minitest 5.0 etc is installed.

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

Any help would be greatly appreciated.

如有任何帮助,我们将不胜感激。

1 个解决方案

#1


38  

Per this link regarding bundler version 1.5.0, you should upgrade your bundler to version 1.5.1 or higher to fix a nasty little bug that surfaces with default gems in Ruby 1.9 and 2.0. I simply ran gem update bundler before running bundle install and everything seems fine now.

根据这个关于bundler版本1.5.0的链接,您应该将bundler升级到1.5.1或更高版本,以修复一个在Ruby 1.9和2.0中带有默认gems的讨厌的小bug。我只是在运行bundle install之前运行了gem更新bundler,现在一切看起来都很好。

#1


38  

Per this link regarding bundler version 1.5.0, you should upgrade your bundler to version 1.5.1 or higher to fix a nasty little bug that surfaces with default gems in Ruby 1.9 and 2.0. I simply ran gem update bundler before running bundle install and everything seems fine now.

根据这个关于bundler版本1.5.0的链接,您应该将bundler升级到1.5.1或更高版本,以修复一个在Ruby 1.9和2.0中带有默认gems的讨厌的小bug。我只是在运行bundle install之前运行了gem更新bundler,现在一切看起来都很好。