安装依赖:
yum install curlyum install curl-develyum install zlib-develyum install openssl-develyum install perlyum install cpioyum install expat-develyum install gettext-devel
下载git源码包:
安装:
cd /git源码包解压路径autoconf./configuremakemake install
安装完毕后运行git若出现:则:
在/etc/ld.so.conf中加一行“/usr/local/lib”,然后运行/sbin/ldconfig