捆绑器不识别平台?找不到宝石

时间:2012-08-07 06:03:48

标签: jruby bundler neo4j

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

> 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

也许捆绑者对它的平台感到困惑 - 为什么它会在那里加上ruby这个词呢?我跑了ruby -e "puts RUBY_PLATFORM",它给了我:java

1 个答案:

答案 0 :(得分:10)