# Unable to build logstash-input-tcp - compatible versions for gem "logstash-core"

**URL:** <https://discuss.elastic.co/t/unable-to-build-logstash-input-tcp-compatible-versions-for-gem-logstash-core/299671>\
**Category:** Logstash\
**Created:** [March 14, 2022, 10:42pm UTC](https://discuss.elastic.co/t/unable-to-build-logstash-input-tcp-compatible-versions-for-gem-logstash-core/299671 "2022-03-14T22:42:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinodhreddyg](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vinodhreddyg](https://discuss.elastic.co/u/vinodhreddyg)\
**Post date:** [March 14, 2022, 10:42pm UTC](https://discuss.elastic.co/t/unable-to-build-logstash-input-tcp-compatible-versions-for-gem-logstash-core/299671/1 "2022-03-14T22:42:50Z")

</div>

Hi Team,

I'm trying to build logstash-input-tcp plugin. It is failing with the following error. Exception is showing as compatible versions for gem "logstash-core".

ENV details:  
Centos Stream  
JAVA: javac 11.0.14  
Jruby: =\* jruby-9.2.9.0 [x86\_64]

Code:

> **[GitHub - logstash-plugins/logstash-input-tcp at v6.2.6](https://github.com/logstash-plugins/logstash-input-tcp/tree/v6.2.6)**
>
> v6.2.6

Steps:  
git clone -b v6.2.6 [GitHub - logstash-plugins/logstash-input-tcp](https://github.com/logstash-plugins/logstash-input-tcp.git)  
bundle install

Exception:

```auto
bundle install
Your RubyGems version (2.7.10)) has a bug that prevents `required_ruby_version` from working for Bundler. Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning by running `gem update --system 3.2.3`
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies.....................
Bundler could not find compatible versions for gem "logstash-core":
  In Gemfile:
    logstash-input-tcp was resolved to 6.2.6, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
        logstash-core (>= 2.4.0.snapshot1, <= 2.4.99)

    logstash-input-tcp was resolved to 6.2.6, which depends on
      logstash-core (>= 6.7.0)

```

---

<div class="post-metadata">

**Author:** ![vinodhreddyg](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vinodhreddyg](https://discuss.elastic.co/u/vinodhreddyg)\
**Post date:** [March 15, 2022, 6:23pm UTC](https://discuss.elastic.co/t/unable-to-build-logstash-input-tcp-compatible-versions-for-gem-logstash-core/299671/2 "2022-03-15T18:23:11Z")

</div>

@ [pebrc](https://discuss.elastic.co/u/pebrc)  
Can you please help here or direct to concerned team

---

<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 12, 2022, 6:23pm UTC](https://discuss.elastic.co/t/unable-to-build-logstash-input-tcp-compatible-versions-for-gem-logstash-core/299671/3 "2022-04-12T18:23:47Z")

</div>

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