我正在使用 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
最佳答案
通过删除 Gemfile.lock 解决:https://github.com/carlhuda/bundler/issues/2043
关于jruby - bundler 无法识别平台?找不到 gem ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11840132/