Installing Git on Mac OS X 10.5 Leopard

I’m a recent convert to Git, and have had trouble finding decent installation instructions for Leopard. Here are the steps I followed to successfully install Git on Mac OS X 10.5.2 Leopard.

Prerequisites

  1. The OS X Developer tools installed from the Leopard DVD
  2. Download the latest Git source package from git.or.cz
  3. Download the latest version of Gettext

Step 1: build and install Gettext

Gettext is required for building Git. If you don’t have it available, you’ll get an error such as:

First extract the archive:

Next, read any updated instructions and build it:

Finally, install it

Step 2: build and install Git

These instructions are fairly similar, except for a small configuration setting. Again, extract the archive:

Next, read any updated instructions and build it. If you omit the --prefix setting, git will be installed into your ~/bin directory.

Finally, install it

Once this is complete, you should be able to run it. Try this:

That should do it!

2 Responses to “Installing Git on Mac OS X 10.5 Leopard”

  1. uri says:

    Why not simply sudo port install git-core? Does it not work on Leopard?

  2. Nigel Ramsay says:

    As suggested, another approach is to use MacPorts. Many people, including myself, would prefer not to install yet another package on their system.

Leave a Reply