# Plugin Install from tgz or zip file

**URL:** <https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867>\
**Category:** Rails\
**Created:** [September 21, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867 "2009-09-21T22:01:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_White](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@Josh\_White](https://www.ruby-forum.com/u/Josh_White)\
**Post date:** [September 21, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867/1 "2009-09-21T22:01:11Z")

</div>

I have a plugin I need to install on my bluehost rails app. Using

./script/plugin install git://github.com/ambethia/recaptcha.git

My command line is giving me no response. It doesn’t seem to try or  
even fail, just the next line in bash show us as though nothing was  
requested. I just assume bluehost doesn’t allow for grabbing git urls,  
and I don’t want to install local gems.

I then decided to download the tarball, and I extracted it, and now I  
am trying to install the plugin from file… what is the best way to  
do this? I assume there is an option where I download and extract the  
tarball to …/recaptcha folder. This folder contains the plugin,  
init.rb, lib/, test/, etc etc.

script/plugin install -from-file ./recaptcha

I don’t see an option in the help files or through some forum  
searching, anyone know an easy way to do this, or know a good  
tutorial?

Thanks  
-Josh

---

<div class="post-metadata">

**Author:** ![Josh\_White](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@Josh\_White](https://www.ruby-forum.com/u/Josh_White)\
**Post date:** [September 22, 2009, 1:32am UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867/2 "2009-09-22T01:32:03Z")

</div>

Josh White wrote:

> I have a plugin I need to install on my bluehost rails app. Using
> 
> ./script/plugin install git://github.com/ambethia/recaptcha.git
> 
> My command line is giving me no response. It doesn’t seem to try or  
> even fail, just the next line in bash show us as though nothing was  
> requested. I just assume bluehost doesn’t allow for grabbing git urls,  
> and I don’t want to install local gems.

It’s not a question of local gems. You need to have a Git client  
installed to pull from Git repositories. Do you? (If you’re not sure,  
type “which git” and see if you get an answer.)

If not, install the git-core package (how you do this varies depending  
on your distro).

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Josh\_White](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@Josh\_White](https://www.ruby-forum.com/u/Josh_White)\
**Post date:** [September 22, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867/3 "2009-09-22T15:42:27Z")

</div>

Sijo Kg wrote:

> Hi Josh  
> Actually what you extracted from the tar is the plugin itself. No  
> need to install it. Just move it to vendors/plugin folder

No! Many plugins have an init.rb script that will be run by  
script/plugin install. Straight copying will not always install a  
plugin properly.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Josh\_White](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@Josh\_White](https://www.ruby-forum.com/u/Josh_White)\
**Post date:** [September 24, 2009, 3:32pm UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867/4 "2009-09-24T15:32:27Z")

</div>

Concluding:  
(1) Just copy the plugin contents to the vendor/plugin folder.  
(2) execute the init.rb script with ruby.

That has worked for me so far, as retrieving from git, with Windows this  
is  
still a pain to do. There are other topics in this mailinglist about it  
😉

---

<div class="post-metadata">

**Author:** ![Josh\_White](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@Josh\_White](https://www.ruby-forum.com/u/Josh_White)\
**Post date:** [September 22, 2009, 7:56am UTC](https://www.ruby-forum.com/t/plugin-install-from-tgz-or-zip-file/175867/5 "2009-09-22T07:56:53Z")

</div>

Hi Josh  
Actually what you extracted from the tar is the plugin itself. No  
need to install it. Just move it to vendors/plugin folder

```
Or

```

As Marnen Laibow-Koser said install the git client and then from the  
same vendor/plugin folder type

git-clone git://github.com/ambethia/recaptcha.git

Sijo
