Building Git on Ubuntu

To "git" the latest goodies in Git 1.6.x, I like to build it on my systems rather than obtain it thru a package manager.

On Ubuntu server systems, I may be missing some Git build dependencies. I can go into the Makefile and set some values (near the top) to work around this like :

NO_TCLTK=true

It's probably easier, however, to do this to have apt-get grab the build dependencies :

$ aptitude build-dep git-core

This may get some things you may not need (Subversion, CVS), but it makes it easier.

Then just make :

# make prefix=/usr install2
...
# which git
/usr/bin/git
# git --version
git version 1.6.3.2

Categories: