CentOS下安裝Git

來源:互聯網
上載者:User

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 的:請點這裡

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.