13 January 2010 ~ 5 Comments

Installing Ruby on Rails 2.3+ plugins from github

I’ve been banging my head against this wall for quite awhile now, and I just finally figured out the answer. Like I’ve done in other posts, I’ll just post what worked for me, and hopefully it’ll help other people.

I’m running Ruby 1.9 and Ruby on Rails 2.3.3 on Snow Leopard. I’ve been trying to install plugins (specifically, Authlogic and Carmen) for a couple days now using the following two commands (as taken from the main github pages):

script/plugin install git://github.com/binarylogic/authlogic.git
script/plugin install git://github.com/jim/carmen.git

In return, I received the following errors:

Plugin not found: ["git://github.com/binarylogic/authlogic.git"]
Plugin not found: ["git://github.com/jim/carmen.git"]

After a lot of poking around, it turns out you need to make two changes in order for this to work on Rails 2.3 or higher: change the git:// at the beginning of each URL to http://, and add a trailing slash to the end of each URL. So instead, run these:

script/plugin install http://github.com/binarylogic/authlogic.git/
script/plugin install http://github.com/jim/carmen.git/

They both worked perfectly for me, so hopefully they’ll work for you. If not, leave a comment and I’ll try to help.

5 Responses to “Installing Ruby on Rails 2.3+ plugins from github”

  1. Sachin 7 May 2010 at 1:08 pm Permalink

    I am facing the same problem, even after adding a trailing slash and replacing git:// with http://

    Any help appreciated…

    Sachin

  2. Tiago 29 May 2010 at 12:10 am Permalink

    I’m having the same problem with “script/plugin install http://github.com/technoweenie/restful-authentication.git/“. Tried git:// and http://, with and without the final / and can’t get it to install. Rails version 2.3.8.

  3. Jake Boxer 30 May 2010 at 10:26 am Permalink

    Sachin: Which version of Ruby and which version of Rails are you running? Which plugins are you trying to install?

    Tiago: Unfortunately, I haven’t tried this with Rails 2.3.8 yet, so I can’t help too much. Which version of Rails are you running?

  4. Rob Grinage 29 June 2010 at 9:21 am Permalink

    Jake: I am having the exact same problem running Ruby 1.9.1 and Rails 2.3.8 on a Windows XP box. Using http: link and the trailing / – it still says “plugin not found”. I’m stuck until I can find an answer.

  5. Jake Boxer 29 June 2010 at 9:23 am Permalink

    Rob: I’d love to help, but I haven’t tested on Rails 2.3.8, and definitely not on Windows :( if I find myself with some spare time, I’ll give it a shot and let you know what I come up with.


Leave a Reply