cd ~
wget -O git.zip https://github.com/git/git/archive/master.zip
unzip git.zip
cd git-master
配置编译安装
autoconf
./configure
make && make install
链接文件到/usr/bin
ln -s /usr/local/bin/git /usr/bin/
git --versio
git version 2.4.0.GIT (标记:好高的版本,2015年5月7日。)
######################################################
编译安装中出现两次错误
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
--------------下面是解决方法--------------------------------------------------------
执行:
yum install perl-ExtUtils-MakeMaker package
参考:http://wwwlouxuemingcom.blog.163.com/blog/static/209747822014518311337/
###########################################################
如果make的时候报错:/bin/sh: msgfmt: command not found
则需要: