- 1.下载git
https://www.kernel.org/pub/software/scm/git/git-2.9.4.tar.xz
- 2.解压git(解压tar.xz)
xz -d git-2.9.4.tar.xz
tar -xvf git-2.9.4.tar
- 3.编译配置文件
cd git-2.9.4
./configure
- 4.编译git(若无错误,跳过以下步骤)
make && make instal
- 5.下载zlib-devel(版本要跟系统自带的zlib相同)
- 6.安装zlib-devel
zypper in zlib-devel-1.2.3-143.1.x86_64.rpm
- 7.编译git
make && make instal