【发布时间】:2012-07-16 19:04:52
【问题描述】:
这是我的错误信息:
Running rake deploy:post_setup...
rake aborted!
You have requested:
nokogiri >= 0
The bundle currently has nokogiri locked at 1.5.5.
Try running `bundle update nokogiri`
这条消息是否告诉我 1.5.5 不知何故不符合 ">= 0" 要求?这听起来不对。
如果我解释错了,我应该如何解释?
(Ruby 是 jruby-1.6.7.2,bundle 是 1.1.4。这个 rake 任务实际上是通过whiskey_disk 运行的,如果这很重要的话。)
== 八个月后 ==
我发现了同样的错误。再次尝试使用whiskey_disk,所以我怀疑这与whiskey_disk有关。
这次是使用 bcrypt gem。
3052 ~/dev/myproj$ bundle exec wd setup --to=grant
Deploying grant@<myserver>.com...
grant@<myserver>.com's password:
Repository already cloned to [/home/grant/myproj]. Skipping.
Running rake deploy:post_setup...
rake aborted!
You have requested:
bcrypt-ruby >= 0
The bundle currently has bcrypt-ruby locked at 3.0.1.
Try running `bundle update bcrypt-ruby`
再一次,到底是什么?我要求大于 0 的东西,它在抱怨,因为捆绑包有 gem,它大于 0!有什么问题?
Gemfile 仅包含 gem 'bcrypt-ruby' - 未指定版本。 3.0.1 版应该是完全可以接受的。
我尝试在目标服务器上执行bundle update 和bundle update bcrypt-ruby,但都没有改变任何东西。
【问题讨论】:
-
你能发布你的 Gemfile 和 Gemfile.lock 吗?你能把你的环境部分发布在你的 Bundler.require 或 Bundler.setup 中吗?
标签: ruby ruby-on-rails-3.2 rake bundler