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

相关文章:

  • 2021-08-21
  • 2021-11-20
  • 2021-07-09
  • 2021-09-18
  • 2021-11-14
猜你喜欢
  • 2022-01-15
  • 2021-07-17
  • 2021-07-04
  • 2022-02-23
  • 2022-01-15
相关资源
相似解决方案