1

我正在使用 jruby 1.7.2 并设置一个新的 rails 应用程序。Bundler 似乎无法找到必要的(基于 java/jruby 的 gem)来使用:

> bundle
Could not find gem 'neo4j-core (>= 0) ruby' in the gems available on this machine.

如果我指定路径,我会得到:

> bundle
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find gem 'neo4j-core (>= 0) ruby' in source at ./vendor/gems/neo4j-core.
Source contains 'neo4j-core' at: 2.0.1

也许 bundler 对它的平台感到困惑——为什么它会ruby在最后加上这个词?我跑了ruby -e "puts RUBY_PLATFORM",这给了我:java

4

1 回答 1

10

通过删除 Gemfile.lock 解决:https ://github.com/carlhuda/bundler/issues/2043

于 2012-08-07T15:01:54.283 回答