Centos6下安裝高版本Git

 

yum install curl-devel
yum
remove git
tar zxvf git-2.9.2.tar.gz mv git-2.9.2 /usr/src/ cd /usr/src/ cd git-2.9.2/ make configure whereis autoconf yum install autoconf make configure ./configure --prefix=/opt/git yum install gcc-c++ ./configure --prefix=/opt/git make all doc yum install zlib-devel tar zxvf asciidoc-8.6.9.tar.gz mv asciidoc-8.6.9 /usr/src/ cd asciidoc-8.6.9 ./configure make make install tar zxvf xmlto-0.0.28.tar.gz mv xmlto-0.0.28 /usr/src/ cd xmlto-0.0.28/ ./configure make make install cd ../git-2.9.2/ make all doc more /tmp/xmlto-xsl.bkD1u2 make all doc make all make install install-doc install-html make install whereis git git ln -s /opt/git/bin/git /usr/bin/git git --version

若是出現"/bin/sh: xsltproc: command not found"錯誤提示信息, 執行 "yum -y install libxslt"
若是在make的時候報錯:Can't locate ExtUtils/MakeMaker.pm in @INC 執行 yum install perl-devel
若是make的時候報錯: tclsh failed; using unoptimized loading  執行yum install gettext
若是使用git過程當中出現 fatal: Unable to find remote helper for 'https' 錯誤, 是由於編譯前未安裝 curl-develhtml

相關文章
相關標籤/搜索