Search code examples
ruby-on-railsrubyrubygemsjruby

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


On Windows 7, I'm following the steps in this tutorial from elastic

When I use the command bundle install I get the following error

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.

and the following is my Gemfile

source 'https://rubygems.org'
gemspec

Kindly note that when I used the command gem list I can find the gem jquery-rails listed there


Solution

  • I had the same issue, and I believe this will fix the problem. In a nutshell, logstash-devutils needs jruby, so trying to use regular ruby won't work.

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