Error installing git on EC2 instance with Cent OS 5

0

I have an ec2 instance newly created using CentOS release 5.11 (Final).

One of the first things I tried to do was to install git using: sudo yum install git only that is displaying this error:

I already gave the command sudo yum update and then tried to install git and presented the same error. Does anyone know what it could be?

    
asked by anonymous 11.11.2016 / 22:53

1 answer

1

To solve this problem I initially followed this tutorial , but with some modifications .

yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
cd /usr/local/src
wget --no-check-certificate https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/git-core/git-1.8.5.5.tar.gz
tar xvzf git-1.8.5.5.tar.gz 
cd git-1.8.5.5
./configure
make
make install

NOTE: After running the configure command, I had to install some missing dependencies, with gcc ( sudo yum install gcc )

NOTE: More links to git source code versions can be found here

* Based on on this answer .

    
12.11.2016 / 00:22