# Problem installing plugin

**URL:** <https://discuss.elastic.co/t/problem-installing-plugin/78373>\
**Category:** Logstash\
**Created:** [March 13, 2017, 3:25pm UTC](https://discuss.elastic.co/t/problem-installing-plugin/78373 "2017-03-13T15:25:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lazypete](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Lazypete](https://discuss.elastic.co/u/Lazypete)\
**Post date:** [March 13, 2017, 3:25pm UTC](https://discuss.elastic.co/t/problem-installing-plugin/78373/1 "2017-03-13T15:25:44Z")

</div>

I just installed logstash from the latest tar.gz file 5.2.2 is the version number.

I have searched the forum and seen this eror come up a few time but no solution were proposed.

So I installed logstash and I need 2 plugin that are not buddled with it.

logstash-input-zeromq  
logstash-output-syslog

The syslog plugin installed just fine, but the zeromq one gives me an error.

```
Plugin version conflict, aborting
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core":
  In snapshot (Gemfile.lock):
    logstash-core (= 5.2.2)

  In Gemfile:
    logstash-core-plugin-api (>= 0) java depends on
      logstash-core (= 5.2.2) java

    logstash-input-zeromq (>= 0) java depends on
      logstash-core (< 2.0.0, >= 1.4.0) java

    logstash-core (>= 0) java

```

Then list a truck load of plugin and their dependencies, but they are all fine, then it finishes up with pretty much the same thing.

```
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "logstash":
  In Gemfile:
    logstash-input-zeromq (>= 0) java depends on
      logstash (< 2.0.0, >= 1.4.0) java
Could not find gem 'logstash (< 2.0.0, >= 1.4.0) java', which is required by gem 'logstash-input-zeromq (>= 0) java', in any of the sources.

```

It looks like its not compatible with logstash 5.2.2  
Like its looking for logstash-core \< 2.0.0 if im reading right.

Im not familiar with ruby and gems so I'm having a hard time figuring out how to fix this.  
Can someone help?

---

<div class="post-metadata">

**Author:** ![Lazypete](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Lazypete](https://discuss.elastic.co/u/Lazypete)\
**Post date:** [March 13, 2017, 5:43pm UTC](https://discuss.elastic.co/t/problem-installing-plugin/78373/2 "2017-03-13T17:43:17Z")

</div>

I looked at the code from github to see if I could understand whats wrong.

And found this in the file logstash-input-zeromq.gemspec

`s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"`

I guess that since logstash has jumped to version 5.2 that this should read

`s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 5.99"`

Unfortunately I tried to follow the guide to test and compile custom plugin and didn't manage to be succesful. ( Bottom of the page [readme.md](http://readme.md) [https://github.com/logstash-plugins/logstash-input-zeromq](https://github.com/logstash-plugins/logstash-input-zeromq) )

Does anyone have a better guide for this?  
How to compile and run your own plugin ?

---

<div class="post-metadata">

**Author:** ![Lazypete](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@Lazypete](https://discuss.elastic.co/u/Lazypete)\
**Post date:** [March 13, 2017, 6:09pm UTC](https://discuss.elastic.co/t/problem-installing-plugin/78373/3 "2017-03-13T18:09:32Z")

</div>

I saw this issue which is with logstash-filter-zeromq but has a very similar problem.

> [@Logstash-filter-zeromq does not install (version conflict) on logstash 5.1](https://discuss.elastic.co/t/logstash-filter-zeromq-does-not-install-version-conflict-on-logstash-5-1/69146):
>
> Hi all, I have trouble installing the logstah-filter-zeromq plugin on a clean logstash 5.1 install (tested with docker hub docker image logstash:5.1). Installation reports a version conflict. Full console output following below. The command used for installation is logstash-plugin install logstash-filter-zeromq Any advice is highly appreciated. Thanks in advance! Console output [truncated due to message size limit]: Validating logstash-filter-zeromq Installing logstash-filter-zeromq Plug…

Unfortunately the solution is exactly what im trying to do, that is recompile locally the plugin.

Sooo still stuck at the same place, I need to recompile and I dont know where to start.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 10, 2017, 6:09pm UTC](https://discuss.elastic.co/t/problem-installing-plugin/78373/4 "2017-04-10T18:09:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
