Install git on Mac OS X 10.4

The other day I wrote about how I compiled and installed support for git on Mac OS X 10.5. I also use a laptop with Mac OS X 10.4 and thought naïvely that the same would work on Tiger. I was sorely mistaken.

Apparently git has a few dependencies which must have been met on Leopard but caused errors on Tiger. The dependencies are to the packages expat and asciidoc. To compile support for those the following can be done prior to running the installation of git.


# Install expat
wget http://switch.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
tar -xvzf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure
make
sudo make install


# Install asciidoc
wget http://www.methods.co.nz/asciidoc/asciidoc-8.2.7.tar.gz2
tar -xvzf asciidoc-8.2.7.tar.gz2
cd asciidoc-8.2.7
sudo ./install.sh

Once this is done, the installation of git should go smoothly.

8 thoughts on “Install git on Mac OS X 10.4”

  1. For me, I had this error when I tried to compile:

    i686-apple-darwin8-gcc-4.0.1: unrecognized option ‘-pthread’

    It seems in Mac OS X, -pthread is implied (so shouldn’t the compiler just ignore the option or give a gentle warning?? grr…) So, if anyone else out there has that problem, comment that out in Makefile:

    PTHREAD_LIBS = #-lpthread

    (I just added the # before -lpthread, maybe you could just comment out the whole line, but thinking like a programmer, that makes me feel weird)

  2. Those new versions of asciidoc appear to require newer versions of Python than is installed on Mac OS X 10.4 Tiger. While the other versions installed OK for me, they didn’t actually work. Version 8.3.5, for example, complained about @staticmethod (syntax which was introduced in a later version of Python). Only 8.2.7 installed and appears to actually work: it’s still available at: http://sourceforge.net/projects/asciidoc/

  3. Doesn’t work. Cant download the freaking asciidoc and get it installed.

    Any help would be appreciated.

    -Vlad

  4. Thanks for the tips. I wanted to get the latest and greatest so I grabbed AsciiDoc 8.4.5, expat 2.0.1, and git 1.6.3.2. From the Python site I downloaded Python 2.6.2 and installed it, there\’s one installer for 10.3-10.5, PPC and Intel. I have a G4 scorching at 466MHz and the Python install went fine. I just had to restart terminal to pick up the newly-installed version, then compiling and installing everything else went fine. Git is installed in /usr/local/bin which for some reason isn\’t in my path (I\’m an OSX noob), but I\’ll sort that out; launching it with an explicit path works just dandy.

    One note on AsciiDoc, it requires a \’./configure\’ step now, too.

Comments are closed.