上QQ阅读APP看书,第一时间看更新
Debian and Ubuntu
To build from source, you need some dependencies installed:
- Open Terminal and install the following dependencies:
$ sudo apt-get update $ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x
- Navigate to your preferred directory.
- Clone the Git source code as follows:
$ git clone https://git.kernel.org/pub/scm/git/git.git
- Build Git as follows:
$ make all doc info prefix=/usr $ sudo make install install-doc install-html install-info install-man prefix=/usr
We installed Git in the /usr directory. Use a different filesystem location if you prefer.