Difference between revisions of "Compile Git on debian"
From RpWiki
(git compile guide) |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Debian seems to be a bit slow on getting recent git packages, so here is a guide to compile. | + | Debian seems to be a bit slow on getting recent [http://git.or.cz/ git] packages, so here is a guide to compile. |
'''Packages''' | '''Packages''' | ||
− | At first you need git to get the latest git sources and some other packages for building it. | + | At first you need git, to get the latest git sources and some other packages for building it. |
− | apt-get install git-core build-essential asciidoc xsltproc xmlto docbook2x | + | apt-get install git-core build-essential asciidoc xsltproc xmlto docbook2x libcurl4-openssl-dev libexpat1-dev tcl-dev |
go to some directory to build git (/usr/src for example) and get the git sources. | go to some directory to build git (/usr/src for example) and get the git sources. | ||
Line 14: | Line 14: | ||
replace 1.6.0 with a recent version. | replace 1.6.0 with a recent version. | ||
− | after that you can install it as root of course: | + | after that you can install it, as root of course: |
make prefix=/usr install install-doc install-info | make prefix=/usr install install-doc install-info | ||
Latest revision as of 14:15, 9 October 2008
Debian seems to be a bit slow on getting recent git packages, so here is a guide to compile.
Packages
At first you need git, to get the latest git sources and some other packages for building it.
apt-get install git-core build-essential asciidoc xsltproc xmlto docbook2x libcurl4-openssl-dev libexpat1-dev tcl-dev
go to some directory to build git (/usr/src for example) and get the git sources.
git clone git://repo.or.cz/git.git cd git git checkout -b build-1.6.0 v1.6.0 make prefix=/usr all doc info
replace 1.6.0 with a recent version.
after that you can install it, as root of course:
make prefix=/usr install install-doc install-info
there might be an error like this:
No `START-INFO-DIR-ENTRY' and no `This file documents'. install-info(git.info): unable to determine description for `dir' entry - giving up No `START-INFO-DIR-ENTRY' and no `This file documents'. install-info(gitman.info): unable to determine description for `dir' entry - giving up make[1]: *** [install-info] Error 1
I currently ignore it, it's only about some failing documentation installation, but man pages seem to work.