搭建git服务端(suse11)

  • 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相同)

http://rpm.pbone.net/index.php3/stat/4/idpl/23893965/dir/opensuse_11.x/com/zlib-devel-1.2.3-143.1.x86_64.rpm.html

  • 6.安装zlib-devel

zypper in zlib-devel-1.2.3-143.1.x86_64.rpm

  • 7.编译git

make && make instal

你可能感兴趣的:(搭建git服务端(suse11))