Installing git on OS X – the millionth way
Okay, I’m out of net contact (and thus svn repo contact) for the next three days — what better opportunity to try out Git? I hear about it constantly, and I’m starting to tear my hair out with waiting for svn commits.
But installing git and the git-svn tool on OS X appears to be problematic. Everyone seems to have their own magic voodoo to make it work. And in this regard, I’m no different. I had to blend 4 different recipes to get it going.
Here’s how I did it:
- installed subversion and it’s language bindings from http://downloads.open.collab.net/binaries.html
- built expat and git from source:
curl -O http://surfnet.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 --prefix=/usr/local
make
sudo make install
cd..curl -O http://kernel.org/pub/software/scm/git/git-1.5.4.tar.gz
tar xvzf git-1.5.4.tar.gz
cd git-1.5.4
./configure --prefix=/usr/local
make
sudo make install
cd ..
- To remove an error about “can’t find SVN/Core.pm”, I added /usr/local/lib/svn-perl to $PERL5LIB.
And the litmus test is:
git-svn --version
Now, peepcode screencast in view, I start in the git world. How excitement.
Comments(0)