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: 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
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
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.