CENTOS: Installing Git 1.7.4.4 on 5.5

Using CentOS for the first time today, and boy did it bring back horrible memories of Unix in the ucsd computer dungeon...

Anyway, since it was a new installation of CentOS 5.5, installation required LOTS of updates...

1. log into root (su root)
2. wget http://kernel.org/pub/software/scm/git/git-1.7.4.4.tar.gz
3. tar -zxf git-1.7.4.4.tar.gz
4. cd git-1.7.4.4

let's just run the installation so that we can see what libs we are missing...

5. make prefix=/where-ever-i-want/git all

if you receive the following kind of error, you need to update/install packages...

expat.h: No such file or directory (yum install expat-devel)
zlib.h: No such file or directory (yum install zlib-devel)
openssl/ssh.h: No such file or directory (yum install openssl-devel, yum install curl-devel)
openssl/err.h: No such file or directory

you get the idea...

6. once installation completes, now you can install libs/binaries to the prefix directory...

7. make prefix=/where-ever-i-want/git install

1 comment:

Anonymous said...

I want to install Git on my CentOS, thanks already to guide how to install.