ubuntu install git

来源:互联网 发布:数据库的数据模型 编辑:程序博客网 时间:2024/06/08 07:56
wget https://nodeload.github.com/git/git/tar.gz/master


chmod -R 777 git.tar.gz 


tar xzvf git.tar.gz 




//查看install文档
https://github.com/git/git/blob/master/INSTALL


//安装git依赖的工具和库
sudo apt-get build-dep git-core git-doc
sudo apt-get install curl
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libssl-dev
sudo apt-get install libexpat1-dev gettext libz-dev


---------------------------------------------------------------
/bin/sh: 2: asciidoc: not found
http://www.methods.co.nz/asciidoc/index.html
http://sourceforge.net/projects/asciidoc/


$ tar -xzf asciidoc-8.6.8.tar.gz
$ cd asciidoc-8.6.8
$ ./configure
$ sudo make install
To install the documentation:


$ sudo make docs
To uninstall AsciiDoc:


$ sudo make uninstall
-----------------------------------------------------------------------------
http://packages.debian.org/source/squeeze/asciidoc
http://ftp.de.debian.org/debian/pool/main/a/asciidoc/asciidoc_8.5.2.orig.tar.gz


tar xzvf asciidoc_8.5.2.orig.tar.gz
-----------------------------------------------------------------------------
/bin/sh: 2: xsltproc: not found
sudo apt-get install  xsltproc
-----------------------------------------------------------------------------
/bin/sh: 2: xmlto: not found
http://ftp.de.debian.org/debian/pool/main/x/xmlto/xmlto_0.0.23.orig.tar.gz
sudo apt-get install xmlto


tar xzvf xmlto_0.0.23.orig.tar.gz
-----------------------------------------------------------------------------
sudo make prefix=/usr/local/git all doc


sudo make prefix=/usr/local/git install install-doc install-html




coder@lampdev:~/soft/git-master$ git --version
git version 1.8.0.1















































原创粉丝点击