# Error with outside gem for custom plugin, bug in pipeline

**URL:** <https://discuss.elastic.co/t/error-with-outside-gem-for-custom-plugin-bug-in-pipeline/213915>\
**Category:** Logstash\
**Created:** [January 6, 2020, 4:14pm UTC](https://discuss.elastic.co/t/error-with-outside-gem-for-custom-plugin-bug-in-pipeline/213915 "2020-01-06T16:14:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [January 6, 2020, 4:14pm UTC](https://discuss.elastic.co/t/error-with-outside-gem-for-custom-plugin-bug-in-pipeline/213915/1 "2020-01-06T16:14:38Z")

</div>

Hi All

I am developing a very small plugin, in which in rb file, i am using a ruby gem

require 'crack'

i installed this crack gem, but still i get this error

I installed the external gem like this

> `/opt/logstash/bin/ruby -S gem install crack`

after running the pipeline i am getting this error

> LoadError: no such file to load -- crack  
> require at org/jruby/RubyKernel.java:987  
> require at /vendor/bundle/jruby/2.5.0/gems/pol  
> yglot-0.3.5/lib/polyglot.rb:65

Anyone knows how to install external gems

also getting this error

`

> java.lang.IllegalStateException: Logstash stopped processing because of an error:(LoadError) no such file to load --crack

`

---

<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:** [February 3, 2020, 4:14pm UTC](https://discuss.elastic.co/t/error-with-outside-gem-for-custom-plugin-bug-in-pipeline/213915/2 "2020-02-03T16:14:44Z")

</div>

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