Compiling git on a default ec2 AMI

I like to use the latest stable git release on my ec2 instances. Here are the steps I follow to get this done:

  1. wget http://kernel.org/pub/software/scm/git/git-1.7.3.3.tar.bz2
  2. mkdir src
  3. cd src
  4. tar jxvf git-1.7.3.3.tar.bz2
  5. cd git-1.7.3.3
  6. sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
  7. sudo make prefix=/usr/local install
  8. which git && git --version

The version numbers might be different but the process will be the same. Get the source here http://git-scm.com/download

And that's it :-)

tags: ec2, git, Linux

Sat 11 Dec 2010, 22:28

3 comments

Thanks for the steps, helped me. I don't think you need steps 2 & 3.

Darren

Very helpful, thanks much

Amichay

You do not need steps 2 & 3 but I like to have a directory called src in my home directory for building from. I can safely trash it at any time.

bawdo

Back