centos git 编译安装

下载:

1
wget https://codeload.github.com/git/git/zip/master

安装环境:

1
2
3
4
5
6
7
8
yum install -y unzip
yum install -y zlib-devel
yum install -y autoconf
yum install -y curl-devel
yum install -y asciidoc
yum install -y xmlto
yum install -y docbook2X
ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi

编译安装:

1
2
3
4
autoconf -i
./configure
make prefix=/usr all doc info
make prefix=/usr install install-doc install-html install-info