【发布时间】:2021-07-07 15:26:57
【问题描述】:
我从here 下载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,但不熟悉。
因为它说“如果您是用户,这是一个错误。”,所以我认为我不需要安装 JRuby。谷歌也没有告诉我如何修复这个错误。
我该如何解决这个问题?
=================================
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.
更新:
在我将.rb 与ruby.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>'
【问题讨论】:
-
你有修改setup.bat吗?您可以查看有关 logstash 环境的 setup.bat。
-
@Ben Lim 不,我不知道。我运行
setup.bat并得到同样的错误。