Logstash无法找到JRuby

秘银

我从这里下载logstash 2.0.0 测试输出:

D:\logstash\bin>logstash -e 'input { stdin { } } output { stdout {} }'
Unable to find JRuby.
If you are a user, this is a bug.
If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.

Windows还会提醒我“如何打开.rb”,我已经安装了ruby,但并不熟悉它。

因为它说“如果您是用户,这是一个bug。”,所以我认为我不需要安装JRuby。Google也没有告诉我如何解决此错误。

我该如何解决?

===============================

setup.bat 同样的错误:

D:\logstash\bin>setup.bat
Unable to find JRuby.
If you are a user, this is a bug.
If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.

更新:

.rbruby.exe错误相关联后更改为:

D:\logstash\bin>logstash
Unable to find JRuby.
If you are a user, this is a bug.
If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file --
 bundler (LoadError)
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from D:/logstash/lib/bootstrap/bundler.rb:44:in `setup!'
        from D:/logstash/lib/bootstrap/environment.rb:47:in `<main>'
秘银

我找到了油。我在github中克隆了仓库,并尝试直接使用它,这导致了此错误。

如果克隆了存储库,则需要先使用来引导系统rake boostrap,但这通常是针对开发人员的。
对于用户而言,最好抓住https://www.elastic.co/downloads/logstash提供的软件包。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章