Forum: Ruby on Rails HowTo install plugins from github?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-21 21:05
(Received via mailing list)
I am trying to install the in_place_editing plugin from github.

I have looked at http://railswheels.com/in-place-editing and it
suggests the following command:

./script/plugin install git://github.com/rails/in_place_editing

I have tried this and nothing happens e.g. './script/plugin list' does
not return anything.

Are there some prerequisites that I am overlooking?

Do I have any other options? It concerns me that my ./script/plugin
commands do not seem to be working - a result of an upgrade problem
perhaps ? ( I have recently upgraded my application to Rails 2.2.2 )

Thanks.
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-21 21:34
(Received via mailing list)
I have tried issuing the following command:

./script/plugin --verbose install
http://github.com/rails/in_place_editing.git

and I get:

Plugins will be installed using http
git init
git pull --depth 1 http://github.com/rails/in_place_editing.git

But again, I do not see any plugin under my vendor/plugins directory.

On 21 Jan, 20:05, "Lee.Longm...@googlemail.com"
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-21 21:35
(Received via mailing list)
I should add that I am developing on an Ubuntu system and using svn to
manage my code.


On 21 Jan, 20:33, "Lee.Longm...@googlemail.com"
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2009-01-21 21:44
(Received via mailing list)
The command on the site is slightly wrong. You're missing the ".git"
at the end. You need to use the full "git clone URL" when installing a
plugin. You'll see this link on the project page:

http://github.com/rails/in_place_editing

from which you need to run the command:

script/plugin install git://github.com/rails/in_place_editing.git

Jason

On Wed, Jan 21, 2009 at 3:34 PM, Lee.Longmore@googlemail.com
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-21 21:59
(Received via mailing list)
Thanks for the response. So I tried:

 ./script/plugin --verbose install
git://github.com/rails/in_place_editing.git

and the following was output to my console:

Plugins will be installed using http
git init
git pull --depth 1 git://github.com/rails/in_place_editing.git

But I still do not see anything in my plugins directory.

What is the 'git' command in the above? Do I need to install this
first?
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2009-01-21 22:36
(Received via mailing list)
Hmm, that's odd. It ran perfectly fine for me.

What happens when you do a straight clone of the project ( git clone
git://github.com/rails/in_place_editing.git ) ?

Here's my command and output:

roelofs@trillian (svn) [master]~/proj $ ./script/plugin --verbose
install git://github.com/rails/in_place_editing.git
Plugins will be installed using http
git init
Initialized empty Git repository in
/home/roelofs/proj/vendor/plugins/in_place_editing/.git/
git pull --depth 1 git://github.com/rails/in_place_editing.git
Unpacking objects: 100% (18/18), done.
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 18 (delta 4), reused 17 (delta 4)
From git://github.com/rails/in_place_editing
 * branch            HEAD       -> FETCH_HEAD
removing: .git


Jason

On Wed, Jan 21, 2009 at 3:58 PM, Lee.Longmore@googlemail.com
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-21 23:09
(Received via mailing list)
Two things are troubling me:

1) I haven't installed any git client software on my Ubuntu machine.
That said, I read that script/plugin handles the fetching of code from
the git repository and therefore I assume it is not necessary to
install any git client software.

2) I have upgraded from Rails 1.2.6 to 2.2.2 (and made the necessary
changes to my application) but I am concerned that the script/plugin
code is the same that was generated when I first generated my
application using Rails 1.2.6, and thus may not support git (as I
assume in (1)).
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2009-01-21 23:32
(Received via mailing list)
Oh...

On Wed, Jan 21, 2009 at 5:08 PM, Lee.Longmore@googlemail.com
<Lee.Longmore@googlemail.com> wrote:
>
> Two things are troubling me:
>
> 1) I haven't installed any git client software on my Ubuntu machine.
> That said, I read that script/plugin handles the fetching of code from
> the git repository and therefore I assume it is not necessary to
> install any git client software.

Um, you do need git installed.

Jason
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2009-01-22 11:12
> Um, you do need git installed.
>
> Jason

Hi, like I said in another similar thread, you can simply download the
tarball or zipfile and extract the archive in your plugins folder, and
the plugin is installed. Installing git is however preferable and easier
for future updates.


--
Learn IT with videos in french language: http://www.digiprof.fr
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2009-01-22 14:49
(Received via mailing list)
On Thu, Jan 22, 2009 at 5:12 AM, Fernando Perez
<rails-mailing-list@andreas-s.net> wrote:
>
>

This isn't true 100% of the time. Quite a few plugins rely on the
installation phase of script/plugin install to push config files / js
/ css / etc files up into the main Rails workspace. Just untarring
into your vendor/plugins does not run this installation process.

Thus, use script/plugin install. Make sure you have the binaries
installed for whatever SCM you use (SVN / git / etc).

Jason
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-22 16:42
(Received via mailing list)
I use a remote subversion repository to manage my application code,
and access it through my IDE or the command line using svn client
programs.

I assume though that I need to install git client programs (git-core?)
in order for script/plugin to be able to retrieve the in_place_editing
plugin from the Rails github repository. Correct?

Having retrieved it, I would then add it to my svn repository as I
would any file that I create.

Thanks...
05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2009-01-22 18:09
(Received via mailing list)
How do I install the git on a mac ?
I installed the gitgem as shown in the git guide, but I still failed
in installing plugins from git
____________________________________________
Hans Marmolin
Prof Cognitive Ergonomics
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202






22 jan 2009 kl. 14.48 skrev Jason Roelofs:
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bob Martens (Guest)
on 2009-01-22 18:30
(Received via mailing list)
Check http://git-scm.com and see if you can find out more there.
Fff557ffbe33c6aab8aa17e1489fdaea?d=identicon&s=25 Harry Seldon (harry_seldon)
on 2009-01-23 00:19
My 2 cents: the bad news is you need to understand what git does, not
just use it. The good news is: here are some resources I wrote about
that while learning git for rails:
http://harryseldon.thinkosphere.com/2009/01/14/git...

http://harryseldon.thinkosphere.com/2008/11/08/gra...
753038ae16700c0fd9a5e1d2e80f68f6?d=identicon&s=25 Lee.Longmore@googlemail.com (Guest)
on 2009-01-23 07:35
(Received via mailing list)
Success!

I have successfully installed auto_complete and in_place_editing from
github.

It was first necessary for me to install the git-core package on my
Ubuntu Hardy Heron machine (sudo apt-get install git-core).

Thanks...

On 22 Jan, 15:41, "Lee.Longm...@googlemail.com"
B96b2fc6c4dac149785fba18a3da33ec?d=identicon&s=25 ansh78 (Guest)
on 2009-02-04 10:27
(Received via mailing list)
I am having the same issue but on mac (leopard and rails 2.2), I
installed git but still I have no success installing plugin from the
git site. Any suggestions?

Thanks..

On Jan 23, 1:34 am, "Lee.Longm...@googlemail.com"
85ba58eed034056754d3760749897ab9?d=identicon&s=25 Rudy (Guest)
on 2009-02-04 21:16
(Received via mailing list)
My experience was even worse. That worse that I started to dislike git
a lot. RoR is about keeping things simple and clear: now we have and
http, and svn, AND git for installing plugins, and some of it works
sometimes, but not always, and you need to install something else
first, etc. NOT a good evolution, if this goes on. The best way to
make a programming language less populair is make it cluttered,
complicated, illogical and unstable. Git is starting to do all that
for me. Hope it changes for the better. :-(
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2009-02-04 23:50
(Received via mailing list)
And the problem is? I mean, script/plugin install git... works exactly
as expected, if you have git installed and it works like it should.

Please state what problem you're having instead of just blatantly
bashing something that works for 99% of the people who try to use it.

Jason
D29f0cb8be0befa9da7eed2137972913?d=identicon&s=25 Olivier Buxter (zorgrum)
on 2009-04-19 23:24
Jason Roelofs wrote:
> And the problem is? I mean, script/plugin install git... works exactly
> as expected, if you have git installed and it works like it should.
>
> Please state what problem you're having instead of just blatantly
> bashing something that works for 99% of the people who try to use it.
>
> Jason

Hi All,

I have the same issue on MAC, git install always fail silently.
Since I am new to ROR, this is very difficult for me to understand what
happens (or not).

Here are a few facts that might help to diagnose the issue, even if only
1% are concerned, this represents at least 2 people now ... :-/

script/about
About your application's environment
Ruby version              1.8.6 (universal-darwin9.0)
RubyGems version          1.3.1
Rack version              1.0 bundled
Rails version             2.3.2
Active Record version     2.3.2
Action Pack version       2.3.2
Active Resource version   2.3.2
Action Mailer version     2.3.2
Active Support version    2.3.2
Edge Rails revision       unknown
Application root          /Users/me/Rails/project
Environment               development
Database adapter          sqlite3
Database schema version   20090419101050

MAC OS 10.5.6
macos:~$ sudo bash
bash-3.2# gem install git
Successfully installed git-1.0.5
1 gem installed
Installing ri documentation for git-1.0.5...
Installing RDoc documentation for git-1.0.5...
bash-3.2# git
bash: git: command not found

So it seems that the git gem is ''successfully'' installed but the git
command is not found. Did I do something wrong ? Well I am not even sure
this is supposed to install a git command, but if I try to install a
plugin in a ROR project, I have the following which results in nothing
installed:

macos:project$ script/plugin --verbose install
git://github.com/activescaffold/active_scaffold.git -r rails-2.2
Plugins will be installed using http
git init
git pull --depth 1 git://github.com/activescaffold/active_scaffold.git
rails-2.2

Any advice welcome,  meanwhile I'll keep trying manual install of
zip/tgz ...

Olivier.
Dd2d775dea75b381edb1bbf0600a0907?d=identicon&s=25 Marnen Laibow-Koser (marnen)
on 2009-04-19 23:44
Olivier Buxter wrote:
> I have the same issue on MAC, git install always fail silently.

(I assume you meant "Mac" [Macintosh], not "MAC" [media access card]. :)
)

> Since I am new to ROR, this is very difficult for me to understand what
> happens (or not).

Your issue has nothing to do with Rails.  Please read on.

[...]
> MAC OS 10.5.6
> macos:~$ sudo bash
> bash-3.2# gem install git
> Successfully installed git-1.0.5
> 1 gem installed
[...]
> bash-3.2# git
> bash: git: command not found
>
> So it seems that the git gem is ''successfully'' installed but the git
> command is not found.

Right.  The git gem is not the Git client.  The Git client is completely
independent of Ruby; you will need to install it just the same way you'd
install a Subversion or CVS client.

I'm not sure what the git gem does, but I would guess that it's simply
some Ruby bindings for Git.

> Did I do something wrong ? Well I am not even sure
> this is supposed to install a git command, but if I try to install a
> plugin in a ROR project, I have the following which results in nothing
> installed:
>
> macos:project$ script/plugin --verbose install
> git://github.com/activescaffold/active_scaffold.git -r rails-2.2

Yes, this will install nothing because you have no Git client installed.
I think script/plugin should print an error message in this case, but
unfortunately it doesn't.

[...]
> Any advice welcome,  meanwhile I'll keep trying manual install of
> zip/tgz ...

Install an actual Git client.  Problem solved.

The situation is analogous to the situation with DBs: there are gems
with Ruby bindings for mySQL, PostgreSQL, etc., but you need to install
the DB software separately.  Git integration works the same way.
>
> Olivier.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
C02b7bccb163aacc3daebdd428c43c95?d=identicon&s=25 Daniel Zepeda (dzepeda)
on 2009-04-19 23:52
You can get an OSX dmg for Git here:

http://code.google.com/p/git-osx-installer/downloa...

or if you have macports:

$ sudo port install git-core

DZ
D29f0cb8be0befa9da7eed2137972913?d=identicon&s=25 Olivier Buxter (zorgrum)
on 2009-04-20 00:16
Daniel Zepeda wrote:
> You can get an OSX dmg for Git here:
>
> http://code.google.com/p/git-osx-installer/downloa...
>
> or if you have macports:
>
> $ sudo port install git-core
>
> DZ

Thank you Daniel and Marnen, problem solved!

However, I think adding a little check in script/plugin to notify users
that the git command is not not found could help newbies like to me to
figure out what's going on ...

My 2 cents^H^H carats. :-)

Olivier.
This topic is locked and can not be replied to.