Linux

Installing GIT on CentOS

Prerequisites

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel

Ensure curl is installed

vim class="bash plain">/etc/ldclass="bash plain">.so.conf

Insert

/usr/local/lib

Run

ldconfig

Get and install the GIT code

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure --with-curl=/usr/local
make
make install

Done

Leave a Reply