ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32'

ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32'

在 Windows 7,我按照 this tutorial 中的步骤从 elastic

当我使用命令 bundle install 时,出现以下错误

Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Could not find gem 'logstash-devutils (>= 0) x64-mingw32' in any of the gem
sources listed in your Gemfile or available on this machine.

下面是我的 Gemfile

source 'https://rubygems.org'
gemspec

请注意,当我使用命令 gem list 时,我可以找到那里列出的 gem jquery-rails

您必须将 gem 'logstash-devutils', '~> 0.0.10' 添加到您的 gemfile

我遇到了同样的问题,我相信这会解决问题。简而言之,logstash-devutils 需要 jruby,因此尝试使用常规 ruby 是行不通的。

Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources