Compiling git
Feb. 26th, 2011 07:02 pmThis is a blog post copied from John's Website - please feel free to join him there and post comments. He has set up openid, so you can post there with your livejournal account using your openid, which is the same as your journal url minus the http://. You can find this entry at http://www.jcfiala.net/blog/2011/02/26/compiling-git.
So, I like working on Drupal in virtual machines, and my favorite is to use Ubuntu 8.04, because it's got PHP 5.2.x, which Drupal 6 works with better than it does PHP 5.3.x. Unfortunately, the git that Ubuntu provides us with is from 1.5.x, which doesn't allow use of git clone --branch. And the git
instructions seem to require those. What to do? Happily, you can compile git yourself:
- First, get rid of git if you've already installed it -
sudo apt-get remove git-core
should do that. apt-get install build-essential
- Download the latest version of git.
http://kernel.org/pub/software/scm/git/git-1.7.4.1.tar.bz2
works currently. sudo apt-get build-dep git-core
tar xjf git-1.7.4.1.tar.bz2
(or whichever version you downloaded)- Change directive into the new directory.
./configure
make