# Can't install Logstash-codec-nmap

**URL:** <https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280>\
**Category:** Logstash\
**Created:** [July 25, 2016, 9:51am UTC](https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280 "2016-07-25T09:51:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timogoosen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timogoosen/32/29750_2.png) [@timogoosen](https://discuss.elastic.co/u/timogoosen)\
**Post date:** [July 25, 2016, 9:51am UTC](https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280/1 "2016-07-25T09:51:19Z")

</div>

I tried installing logstash-codec nmap see link:

> **[logstash-plugins/logstash-codec-nmap](https://github.com/logstash-plugins/logstash-codec-nmap)**
>
> logstash-codec-nmap - NMap XML decoding for logstash

I've tried installing using bin/plugin and I've also tried installing it using gem and also tried installing it from source.

But I keep getting an error: Please install ruby-nmap and gives a certain version that I should install. I'm not my server right now so I don't have the exact error. Anyone else having trouble with this?

Regards.

---

<div class="post-metadata">

**Author:** ![timogoosen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timogoosen/32/29750_2.png) [@timogoosen](https://discuss.elastic.co/u/timogoosen)\
**Post date:** [July 25, 2016, 9:51am UTC](https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280/2 "2016-07-25T09:51:45Z")

</div>

More details: I'm on latest version of Ubuntu Server with updates installed and I have the latest version of Logstash.

---

<div class="post-metadata">

**Author:** ![ljb2of3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljb2of3/32/11488_2.png) [@ljb2of3](https://discuss.elastic.co/u/ljb2of3)\
**Post date:** [August 19, 2016, 5:30pm UTC](https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280/3 "2016-08-19T17:30:22Z")

</div>

I'm having the same problem. Oddly, I installed it about a month ago without issue. Both servers are running Ubuntu Server 14.04 with the OpenJDK 7 JRE. The working server is a slightly older version (7u101 vs 7u111). Both have logstash installed from the elastic repo, and is version 1:2.3.4-1.

Best I can tell, the plugin installation needs to install ruby-nmap, which now depends on ruby \> 2.0.0, but the bundled jruby with logstash is 1.7.23. Is it possible to get the plugin to install an older version of ruby-nmap that doesn't depend on ruby 2?

For what it's worth, the problem is the same on Ubuntu 16.04 with OpenJDK 8.

---

<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:** [July 6, 2017, 4:42am UTC](https://discuss.elastic.co/t/cant-install-logstash-codec-nmap/56280/4 "2017-07-06T04:42:30Z")

</div>


