Git on MAC OS X

I know that this question may not be here, but think that most of you
using RoR deal with Git.

I run a MAC OS X 10.5.8, and want to install Git running on my machine.
But, I didn’t find this version of my MAC OS X here: Hi,

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

Any ideas on getting Git working on my MAC?

Thanks.

On 19 July 2010 15:46, Abder-Rahman A. [email protected] wrote:

I know that this question may not be here, but think that most of you
using RoR deal with Git.

I run a MAC OS X 10.5.8, and want to install Git running on my machine.
But, I didn’t find this version of my MAC OS X here: Hi,

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

Any ideas on getting Git working on my MAC?

Personally I install all my Linuxy software through Homebrew -
http://github.com/mxcl/homebrew - install homebrew using (from the
github
page):

ruby -e “$(curl -fsS
http://gist.github.com/raw/323731/install_homebrew.rb)”

Then you can install Git using:

brew install git

Cheers,

Andy

Abder-Rahman A. wrote:

I know that this question may not be here, but think that most of you
using RoR deal with Git.

I run a MAC OS X 10.5.8, and want to install Git running on my machine.
But, I didn’t find this version of my MAC OS X here: Hi,

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

Huh? There are lots of Leopard versions there. Pick one.

Any ideas on getting Git working on my MAC?

Thanks.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

+1 for homebrew

On Mon, Jul 19, 2010 at 9:58 AM, Marnen Laibow-Koser

Not mine! 10.5.8 is not there.

Andy J. wrote:

On 19 July 2010 15:46, Abder-Rahman A. [email protected] wrote:

I know that this question may not be here, but think that most of you
using RoR deal with Git.

I run a MAC OS X 10.5.8, and want to install Git running on my machine.
But, I didn’t find this version of my MAC OS X here: Hi,

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

Any ideas on getting Git working on my MAC?

Personally I install all my Linuxy software through Homebrew -
http://github.com/mxcl/homebrew - install homebrew using (from the
github
page):

ruby -e “$(curl -fsS
http://gist.github.com/raw/323731/install_homebrew.rb)”

Then you can install Git using:

brew install git

Cheers,

Andy

Thanks a lot Andy. After I installed Homeberew, and tried to run: brew
install git, I got the following:

-bash: brew: command not found

What should I do?

And, yes, after I get the login system done, I will move to get to check
your: http://github.com/andyjeffries/andy_admin

Thanks a lot.

I now added /usr/local/bin to my path as follows:

export PATH=$PATH:/usr/local/bin
http://www.how-to-linux.com/2010/04/how-to-add-usrlocalbin-to-your-path-on-centos/

But, when I run now: brew install git

I get the following:

-bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file
or directory

Not mine! 10.5.8 is not there.

Did you ever try any of those listed?
Does not
http://code.google.com/p/git-osx-installer/downloads/detail?name=git-1.7.1-intel-leopard.dmg&can=3&q=
work for you?

Regards,
Rimantas

On 19 Jul 2010, at 17:34, Abder-Rahman A. wrote:

Oh, Andy, I forgot to mention that after installing homebrew, I got
the
following:

Warning: /usr/local/bin is not in your PATH.

Well, you could have google’d what that warning means to start off with.

Edit ~/.bash_login (only your user) or /etc/profile (all users) and
add the following:

export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

You will need to restart your terminal session for it to activate!!!

Best regards

Peter De Berdt

Oh, Andy, I forgot to mention that after installing homebrew, I got the
following:

Warning: /usr/local/bin is not in your PATH.

Rimantas L. wrote:

Not mine! 10.5.8 is not there.

Did you ever try any of those listed?
Does not
http://code.google.com/p/git-osx-installer/downloads/detail?name=git-1.7.1-intel-leopard.dmg&can=3&q=
work for you?

Regards,
Rimantas

Thanks Rimantas. I’ll check Andy’s solution, if it works it would be
nice.

I found that Ruby is in: /opt/local/bin/ruby

Should I move it to /usr/local/bin ?

On 19 Jul 2010, at 17:57, Abder-Rahman A. wrote:

I found that Ruby is in: /opt/local/bin/ruby

Should I move it to /usr/local/bin ?

Sounds to me like you have installed MacPorts already. Why didn’t you
just install git through macports too then?

sudo port install git-core

Best regards

Peter De Berdt

Peter De Berdt wrote:

On 19 Jul 2010, at 17:57, Abder-Rahman A. wrote:

I found that Ruby is in: /opt/local/bin/ruby

Should I move it to /usr/local/bin ?

Sounds to me like you have installed MacPorts already. Why didn’t you
just install git through macports too then?

sudo port install git-core

Best regards

Peter De Berdt

Oh, thanks Peter, what a nice solution that WORKED :slight_smile:

Thanks a lot everyone for your replies.

On 19 July 2010 16:38, Abder-Rahman A. [email protected] wrote:

I now added /usr/local/bin to my path as follows:

export PATH=$PATH:/usr/local/bin

http://www.how-to-linux.com/2010/04/how-to-add-usrlocalbin-to-your-path-on-centos/

Good job.

But, when I run now: brew install git

I get the following:

-bash: /usr/local/bin/brew: /usr/bin/ruby: bad interpreter: No such file
or directory

Wow! That is weird. Where is your Ruby? On Mac OS X Ruby is available
by
default at that location:

$ which ruby
/usr/bin/ruby

Try running which ruby in a Terminal.

Cheers,

Andy

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs