CentOS下安裝Git
CentOS下安裝Git
1.解壓git-master.zip到/opt/git-master
2.開啟$IGIT_HOME/INSTALL檔案
裡邊有這幾句
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc install-html;# as root
3.按照上邊的來
make all doc 時
插曲1
/bin/sh: line 1: asciidoc: command not found
make[1]: *** [git-add.html] Error 127
make[1]: Leaving directory `/opt/git-master/Documentation'
make: *** [doc] Error 2
缺asciidoc 三部曲安裝asciidoc-8.6.9.tar.gz
繼續make all doc
插曲2
XSLTPROC user-manual.html
http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl:1: parser error : Document is empty
^
http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl:1: parser error : Start tag expected, '<' not found
^
compilation error: file docbook.xsl line 3 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
make[1]: *** [user-manual.html] Error 5
make[1]: Leaving directory `/opt/git-master/Documentation'
make: *** [doc] Error 2
XSLTPROC user-manual.html時報錯
只要一大寫 瞬間啥都不認識了
按照慣例
yum search XSLTPROC
[root@bogon git-master]# yum search XSLTPROC
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.163.com
============================== Matched: XSLTPROC ===============================
libxslt.i386 : Library providing the Gnome XSLT engine
libxslt.x86_64 : Library providing the Gnome XSLT engine
真有這個東西 還挺熟悉 果斷安裝
4.make install install-html 安裝
install-doc我想了想沒裝 前邊好像白編譯了
可以直接 make all
5.終端
git --version
Linux git命令參數及用法詳解
Fedora通過Http Proxy下載Git
在Ubuntu Server上安裝Git
伺服器端Git倉庫的建立(Ubuntu)
Linux下Git簡單使用教程(以Android為例)
Git權威指南 PDF高清中文版
Git 的詳細介紹:請點這裡
Git 的:請點這裡