编译用的一些依赖
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
yum update -y nss curl libcurl
下载git的源码
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
make
make install
root用户执行的默认装到了/root/bin目录下,把他们全挪出来就可以了
mv /root/bin/* /usr/bin
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:[Linux] 低版本centos升级git解决fatal: HTTP request failed - Python技术站