gpt4 book ai didi

ruby - Logstash 无法找到 JRuby

转载 作者:数据小太阳 更新时间:2023-10-29 07:52:11 27 4
gpt4 key购买 nike

我从 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。 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>'

最佳答案

这在 2.3.4 中仍然存在!

这是 .zip 下载的问题,而不是 tar.gz。前者缺少 vendor/jruby 目录。从 tar.gz 下载中获取它。

关于ruby - Logstash 无法找到 JRuby,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33621206/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com