Git solves the problem of failed: http request failed

installation requirements:

> # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc

> # yum Install GCC Perl-extutils-Makemaker

uninstall Centos built-in git1.7.1:

check the version with git – version, Cento6.5 should come with git version 1.7.1

> # yum remove git

download git2.2.1 and add git to your environment variable

> Wget # https://github.com/git/git/archive/v2.2.1.tar.gz

> # tar ZXVF v2.2.1. Tar. Gz

> # CD git – 2.2.1

> # make configure

> # ./configure –prefix=/usr/local/git –with-iconv=/usr/local/libiconv

> # make all doc

> # make install install-doc install-html

> # echo “export PATH=$PATH:/usr/local/git/bin” > > /etc/bashrc

> # source /etc/bashrc

installation problem:

/bin/sh: line 1: xmlto: command not found

make[1]: *** [git-add.1] Error 127

make[1]: Leaving directory `/root/src/git/Documentation’

make: *** [doc] Error 2

xmlto 4.2 installation

yum install xmlto

view version no

> # git –version

> The git version 2.2.1

Read More: