Error installing git in EC2 instance with Cent OS 5

Asked

Viewed 36 times

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 you’re making that mistake:

inserir a descrição da imagem aqui

I’ve given the command sudo yum update and then tried to install git and presented the same error. Someone knows what could be?

  • may not be available in the repository, adds the EPEL repository, which Voce will achieve.

  • @Marcossouza, I even got to try with EPEL only it still kept returning me the same error :S

1 answer

1


To solve this problem I initially followed this tutorial, only 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 in that reply.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.