Building Git on Ubuntu

Posted on June 11th, 2009 by David Luhman and tagged .

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

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options