Centos 6 升级 git

因为Centos 6 自带的GIT 是 1.7 版本的,oschina git 须要 1.8+ 因此进行升级,Centos7 git 是1.8.3的能够不用升级了html

下载 wget https://github.com/git/git/archive/v2.11.0.tar.gzgit

查看 INSTALL 文档就能够完成安装:github

    进入解压后的目录:curl

    $ make configure 
    $ ./configure --prefix=/usr --with-curl --with-expat 
    $ make all doc 
    # make install install-doc install-htmlurl

 

make的时候遇到问题 : xml

/bin/sh: line 1: asciidoc: command not foundhtm

/bin/sh: line 1: xmlto: command not foundci

请yum 安装 asciidoc,xmlto  或者 下载安装 asciidoc,xmlto 便可文档

yum install asciidoc xmltoget

相关文章
相关标签/搜索