在任何gem来源中都找不到gem'logstash-devutils(> = 0)ruby' [英] Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources

查看:230
本文介绍了在任何gem来源中都找不到gem'logstash-devutils(> = 0)ruby'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想学习编写example-output-plugin,请遵循以下页面:

I'm just trying to learn to write the example-output-plugin,follow this page:

http://www.elastic.co/guide/zh-CN/logstash/current /_how_to_write_a_logstash_output_plugin.html#_clone_and_test_4

当我在〜/logstash-output-example文件夹中键入捆绑安装"时,出现错误:

when I type the "bundle install" in the folder ~/logstash-output-example,I get the the error:

Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources listed in your Gemfile or installed on this machine.

Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources listed in your Gemfile or installed on this machine.

似乎丢失了宝石'logstash-devutils(> = 0)ruby',但是当我键入 "sudo gem install logstash-devutils",出现错误

it seems the gem 'logstash-devutils (>= 0) ruby' missed,but when I type the "sudo gem install logstash-devutils", I get the error

ERROR: Could not find a valid gem 'logstash-devutils' (>= 0)

这是原因:

Found logstash-devutils (0.0.12), but was for platform java

还有其他人可以帮助我吗?

Anyone else can help me?

环境:MAC OSX 10.9.5

environment:MAC OSX 10.9.5

推荐答案

我只是遇到了同样的问题.通过仅通过rubygems.org页面上的下载链接下载gem并使用以下命令进行安装即可解决该问题:

I just ran into the same problem. Solved it by just downloading the gem via the download link on its rubygems.org page and installing it with:

sudo gem install logstash-devutils-0.0.13-java.gem

对我有用.

更新: 好吧,这将安装gem,但无法解决实际问题.我需要切换到jruby才能使本教程正常工作.可以通过 RVM :

Update: Well, that will install the gem but it will not solve the real problem. I needed to switch to jruby for the tutorial to work. This can be done via the RVM:

sudo rvm install jruby

这篇关于在任何gem来源中都找不到gem'logstash-devutils(> = 0)ruby'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆