Git Source:
Https://github.com/git/git/releases
wget https://github.com/git/git/archive/v2.12.2.tar.gz
Error:
Can ' t locate extutils/makemaker.pm in @INC (@INC contains:/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/ Perl5/vendor_perl
Fix, install installation Perl-extutils-cbuilder Perl-extutils-makemaker :
Yum Install Perl-extutils-cbuilder Perl-extutils-makemaker
Error:
LINK git-credential-store
libgit.a (UTF8.O): in function ' Reencode_string_iconv ':
/opt/git-master/utf8.c : 530:undefined reference to ' Libiconv '
libgit.a (UTF8.O): in function ' Reencode_string_len ':
/opt/git-master/ utf8.c:569:undefined reference to ' Libiconv_open '
/opt/git-master/utf8.c:588:undefined reference to ' LIBICONV_ Close '
/opt/git-master/utf8.c:582:undefined reference to ' Libiconv_open '
Collect2:ld returned 1
Solve, install Libiconv can
https://ftp.gnu.org/gnu/libiconv/
wget https://ftp.gnu.org/gnu/libiconv/libiconv-1.15.tar.gz
TAR-XVF libiconv-1.15.tar.gz
cd libiconv-1.15
./configure--prefix=/usr/local/libiconv && make && Make install
Then Git re-installs
Make configure
./configure--prefix=/usr/local/git--with-iconv=/usr/local/libiconv make
&& make Install