# Install plugin on machine without git

**URL:** <https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522>\
**Category:** Logstash\
**Created:** [November 13, 2015, 3:10pm UTC](https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522 "2015-11-13T15:10:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![incogniro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incogniro/32/5875_2.png) [@incogniro](https://discuss.elastic.co/u/incogniro)\
**Post date:** [November 13, 2015, 3:10pm UTC](https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522/1 "2015-11-13T15:10:56Z")

</div>

I would like to install a plugin in a closed environment on a RHEL machine that does not have git available. I have compiled the plugin from source and made the following change to the .gemspec file:

# Files

#s.files = `git ls-files`.split($)+::Dir.glob('vendor/_')  
s.files = Dir.glob('vendor/_')

However the plugin does not install as shown below:

bash-4.1$ /opt/logstash/bin/plugin install /tmp/logstash-output-syslog-0.1.4.gem  
Validating /tmp/logstash-output-syslog-0.1.4.gem  
Installing logstash-output-syslog  
Installation successful  
bash-4.1$ /opt/logstash/bin/plugin list | grep logstash-output-syslog  
bash-4.1$ /opt/logstash/bin/plugin list  
...  
logstash-output-statsd  
logstash-output-stdout  
logstash-output-tcp  
logstash-output-udp  
...  
bash-4.1$

Any idea how to get the plugin installed locally?

Thanks,

---

<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:** [November 13, 2015, 3:28pm UTC](https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522/2 "2015-11-13T15:28:11Z")

</div>

> ```
> #s.files = `git ls-files`.split($)+::Dir.glob('vendor/*')
> s.files = Dir.glob('vendor/*')
> 
> ```

What files are actually included in the gem? With only Dir.glob('vendor/\*') I'd expect the resulting gem to only contain vendored files and not the actual plugin source files.

Why not just install Git or build the gem on a machine that has Git?

---

<div class="post-metadata">

**Author:** ![incogniro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incogniro/32/5875_2.png) [@incogniro](https://discuss.elastic.co/u/incogniro)\
**Post date:** [November 13, 2015, 3:30pm UTC](https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522/3 "2015-11-13T15:30:15Z")

</div>

Hi Magnus,

I'm just reading this [How to debug plugin installation](https://discuss.elastic.co/t/how-to-debug-plugin-installation/25841/3) thread which may have a solution.

Thanks,

---

<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, 5:22am UTC](https://discuss.elastic.co/t/install-plugin-on-machine-without-git/34522/4 "2017-07-06T05:22:54Z")

</div>


