Friday, March 26, 2010

Installing GIT on Centos 5.4

Following directions from this site:

I got the error:

[root@tricostar-nwlc git-]# make prefix=/usr/local all
/bin/sh: curl-config: command not found
/bin/sh: curl-config: command not found
* new build flags or prefix
CC fast-import.o

When trying to make GIT. After a bit of googling, found that I needed to include curl-devel as a dependancy so the following instructions worked for me:

yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel
yum install libcurl3-openssl-dev
tar xvfz git-
cd git-
make prefix=/usr/local all
make prefix=/usr/local install