Installing Git (1.7.4.1) on Amazon EC2

My little EC2 instance runs with CentOS. In these days I need to set up my own version control system but I’m tired of using the same old Subversion…so, why not taking the chance to try “the fast version control system”: Git.

Here’s a quick installation guide:

0. Prerequisites: execute a yum update and then install GCC if not already installed

sudo yum -y update
sudo yum install gcc

1. Dependencies: install the needed dependencies and the module to add the additional target to the Makefile generated by ExtUtils::MakeMaker

yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel perl
sudo yum install perl-ExtUtils-MakeMaker-Coverage.noarch
sudo yum install perl-ExtUtils-MakeMaker

2. Download: download the tar and extract the files

wget http://kernel.org/pub/software/scm/git/git-1.7.4.1.tar.gz
tar -zxvf git-1.7.3.tar.gz

3. Build and install

./configure
make
make install

That’s all!


3 Responses to “Installing Git (1.7.4.1) on Amazon EC2”


Leave a Reply

Powered by WordPress and theme PlainMagic.
Copyright © 2010 The Granma's garage