Skip to content

Instantly share code, notes, and snippets.

@oldsharp
Last active January 13, 2016 05:34
Show Gist options
  • Save oldsharp/7686c44db72ca46f54c7 to your computer and use it in GitHub Desktop.
Save oldsharp/7686c44db72ca46f54c7 to your computer and use it in GitHub Desktop.
Build git from source
# Example procedures to build git from source.
# See https://github.com/git/git/blob/master/INSTALL for more info and
# detailed instructions.
#
# Author: Ray Chen <oldsharp@gmail.com>
# License: Public Domain
# Resolve dependency (administrative privileges may required):
# Red Hat Enterprise Linux 7 ("RHEL7") | CentOS 7:
yum install curl-devel expat-devel gettext-devel openssl-devel \
zlib-devel asciidoc xmlto
# Ubuntu 14.04 ("Trusty") | Debian:
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev \
libssl-dev libsvn-perl asciidoc xmlto
# Build source code as we usually would:
make configure
./configure --prefix=/usr/local
# We only want man pages. Do _not_ run "make info", to prevent
# potential issue.
make all doc
# Administrative privileges may required to run the following:
make install install-doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment