尝试生成模型时出现错误 neo4j [未找到]
我安装了 JRuby 和 neo4j gem 并尝试使用生成器来创建模型:
jruby -S rails generate scaffold User name:string born:date --orm=neo4j
但是,我收到此错误:
error neo4j [not found]
我尝试通过捆绑器安装 neo4j 并仅安装 gem。无论哪种方式,which neo4j 都不会返回任何内容。
我也用 neo4j-rails gem 尝试过这个,但 Neo4j rubyforge 页面说不再需要它。我还尝试只生成一个模型而不是一个脚手架。
此错误仅针对生成器还是意味着我的 neo4j 安装不起作用?
I installed JRuby and the neo4j gem and trying to use a generator to create a model:
jruby -S rails generate scaffold User name:string born:date --orm=neo4j
However, I get this error:
error neo4j [not found]
I tried installing neo4j through bundler and just gem install. Either way, which neo4j
returns nothing.
I tried this with the the neo4j-rails gem as well but I the neo4j rubyforge page says it is no longer needed. I also tried just generating a model rather than a scaffold.
Is this error specific to just generators or does it mean that my neo4j installation didn't work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的安装没有成功。
问题是您可能安装了 0.4.6 版本,该版本并非特定于 JRuby 平台,但也在 MRI 上安装(错误)。因此,错误“neo4j [未找到]”是因为您正在使用 JRuby 并在 MRI 中安装了 neo4j.rb gem。 Neo4j.rb版本>=1.0.0只能安装在JRuby上。
我建议使用 RVM:
Your installation did not work.
The problem is that you have probably installed version 0.4.6 which is not specific to the JRuby platform but also installs (incorrectly) on MRI. So the error 'neo4j [not found]' is because you are using JRuby and installed the neo4j.rb gem in MRI. Neo4j.rb version >= 1.0.0 can only be installed on JRuby.
I recommend using RVM: