# Installing logstash-core-5.4.1-java.gem with an error

**URL:** <https://discuss.elastic.co/t/installing-logstash-core-5-4-1-java-gem-with-an-error/134911>\
**Category:** Logstash\
**Created:** [June 7, 2018, 7:16am UTC](https://discuss.elastic.co/t/installing-logstash-core-5-4-1-java-gem-with-an-error/134911 "2018-06-07T07:16:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harryyou](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@harryyou](https://discuss.elastic.co/u/harryyou)\
**Post date:** [June 7, 2018, 7:16am UTC](https://discuss.elastic.co/t/installing-logstash-core-5-4-1-java-gem-with-an-error/134911/1 "2018-06-07T07:16:08Z")

</div>

Command：gem install logstash-core-5.4.1-java.gem --local  
OS：Suse 11 SP4  
ELK Vesion:5.4.1  
Jruby Vesion: 9.2.0.0  
Error Message:  
jar dependencies for logstash-core-5.4.1-java.gemspec . . .  
[ERROR] [ERROR] Some problems were encountered while processing the POMs:  
[FATAL] Non-parseable POM /usr/local/jruby/lib/ruby/stdlib/jars/gemspec\_pom.rb: only whitespace content allowed before start tag and not # (position: START\_DOCUMENT seen #... @1:1) @ line 1, column 1  
@  
[ERROR] The build could not read 1 project -\> [Help 1]  
[ERROR]  
[ERROR] The project (/usr/local/jruby/lib/ruby/stdlib/jars/gemspec\_pom.rb) has 1 error  
[ERROR] Non-parseable POM /usr/local/jruby/lib/ruby/stdlib/jars/gemspec\_pom.rb: only whitespace content allowed before start tag and not # (position: START\_DOCUMENT seen #... @1:1) @ line 1, column 1 -\> [Help 2]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException)  
[ERROR] [Help 2] [http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException](http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException)  
ERROR: While executing gem ... (Errno::ENOENT)  
No such file or directory - /usr/local/jruby/lib/ruby/gems/shared/gems/logstash-core-5.4.1-java/deps.lst

Describtion:  
I`m in an offline environment, so i have to install elk and logstash-input-jdbc-plugin manually, This error occured when i was installing logstash-core-5.4.1-java.gem, please give me some help , thank you！

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 10, 2018, 8:24pm UTC](https://discuss.elastic.co/t/installing-logstash-core-5-4-1-java-gem-with-an-error/134911/2 "2018-06-10T20:24:53Z")

</div>

Don't install logstash-core-5.4.1-java.gem separately. Use the one bundled with Logstash.

---

<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 8, 2018, 8:24pm UTC](https://discuss.elastic.co/t/installing-logstash-core-5-4-1-java-gem-with-an-error/134911/3 "2018-07-08T20:24:53Z")

</div>

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