1.下载源码包wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.22.0.tar.gz
2.解压后
make configure
出现问题执行:
yum install autoconf
yum install zlib
yum install zlib-devel
./configure --prefix=/opt/module/git
make all doc
出现 asciidoc: command not found
wget https://jaist.dl.sourceforge.net/project/asciidoc/asciidoc/8.6.9/asciidoc-8.6.9.zip
解压后执行
./configure
make
make install
出现xmlto: command not found
wget https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2
解压后执行
./configure
make
make install
出现failed to load external entity
yum -y install docbook-style-xsl
make install install-doc install-html
ln -s /opt/module/git /usr/local/bin
git --version