installing git is not fun but it is more fun than a fork in your eye

Here is more or less what I did to install git on OS X and on Media Temple. Newer versions of the below files will exist by the time you are reading this i.e. now.

I got the below mostly from http://dysinger.net/2007/12/30/installing-git-on-mac-os-x-105-leopard/

# GPG (if you didn’t have it already)
curl ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.7.tar.bz2 | tar xj
cd gnupg-1.4.7
./configure
make
sudo make install
cd ..

# GetText
curl http://mirrors.usc.edu/pub/gnu/gettext/gettext-0.17.tar.gz | tar xz
cd gettext-0.17
./configure
make
sudo make install
cd ..

# GIT
curl http://kernel.org/pub/software/scm/git/git-1.5.4.4.tar.bz2 | tar xj
cd git-1.5.4.4
./configure
make
sudo make install
cd ..
curl http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.4.4.tar.bz2 |
sudo tar xj -C /usr/local/share/man

# Setup GIT
git config –global user.name ‘My Name’
git config –global user.email me@mydomain.net

#can you see two dashes before “global”?

Advertisements

5 Responses to installing git is not fun but it is more fun than a fork in your eye

  1. Pieter says:

    Why didn’t you just use the OS X installer? http://code.google.com/p/git-osx-installer/

  2. Chris Hobbs says:

    Thanks for the tip. The next time I need an git install in OS X I will give that a try.

  3. Just thought you might want to know we have a new Knowledge Base Article on how to install Git on our DV3.5.

    http://kb.mediatemple.net/questions/820/

  4. Chris Hobbs says:

    Thanks, Brandon. I might look into switching to DV, I think it’s about the same price we’re paying for our upgraded GS. Until then I suppose doing the manual install as I’ve illustrated is the best solution when still on GS. If that’s not true please let us know.
    Thanks!

  5. Chris Hobbs says:

    I’m still not aware of an easy way to put git on MediaTemple’s bargain gs servers. I did try the OS X installer on a new iMac I found laying around the office. It worked great except for altering my .bash_profile a little more than I wanted. Next time I will configure paths myself.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: