Installing GIT on CentOS 4.6
The version that works for me is v1.7.8.1
I tried the latest version (as of this writing) v2.7 but I kept failing on ./configure
Here are the steps:
$ wget http://git-core.googlecode.com/files/git-1.7.8.1.tar.gz
$ tar xvzf git-1.7.8.1.tar.gz
$ cd git-1.7.8.1
$ ./configure
$ make
$ make install
In case our are prompted to install required libraries GIT has dependency on, run the below command to install them:
$ sudo yum install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel
If you are having trouble with yum, maybe you need to reconfigure your yum. Do the following:
1. Open /etc/yum.repos.d/CentOS-Base.repo in an editor
2. Comment out the "mirrorlist" entries.
3. Uncomment the "baseurl" entries and change them to http://vault.centos.org/4.9/os/$basearch