Centos 安裝git

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-develhtml

./configure --prefix=/opt/module/gitgit

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.net

相關文章
相關標籤/搜索