Commit 4c61538b820953c4cf72fd1502d9eae42ffbf042
1 parent
1a923fe0
Exists in
master
and in
4 other branches
Add instructions to install Git from source
This is needed for Ubuntu 12.04, which only provides Git 1.7.9.
Showing
1 changed file
with
29 additions
and
1 deletions
Show diff stats
doc/install/installation.md
@@ -52,7 +52,7 @@ If you are not familiar with vim please skip this and keep using the default edi | @@ -52,7 +52,7 @@ If you are not familiar with vim please skip this and keep using the default edi | ||
52 | 52 | ||
53 | Install the required packages: | 53 | Install the required packages: |
54 | 54 | ||
55 | - sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate | 55 | + sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate |
56 | 56 | ||
57 | Make sure you have the right version of Python installed. | 57 | Make sure you have the right version of Python installed. |
58 | 58 | ||
@@ -74,6 +74,34 @@ Make sure you have the right version of Python installed. | @@ -74,6 +74,34 @@ Make sure you have the right version of Python installed. | ||
74 | # For reStructuredText markup language support install required package: | 74 | # For reStructuredText markup language support install required package: |
75 | sudo apt-get install -y python-docutils | 75 | sudo apt-get install -y python-docutils |
76 | 76 | ||
77 | +Make sure you have the right version of Git installed | ||
78 | + | ||
79 | + # Install Git | ||
80 | + sudo apt-get install -y git-core | ||
81 | + | ||
82 | + # Make sure Git is version 1.7.10 or higher | ||
83 | + git --version | ||
84 | + | ||
85 | + # System packaged Git too old? Remove it and compile from source. | ||
86 | + | ||
87 | + # Remove packaged Git | ||
88 | + sudo apt-get remove git-core | ||
89 | + | ||
90 | + # Install dependencies | ||
91 | + sudo apt-get install -y libexpat1-dev gettext | ||
92 | + | ||
93 | + # Download and compile from source | ||
94 | + cd /tmp | ||
95 | + curl --progress https://git-core.googlecode.com/files/git-1.8.4.1.tar.gz | tar xz | ||
96 | + cd git-1.8.4.1/ | ||
97 | + make prefix=/usr/local all | ||
98 | + | ||
99 | + # Install into /usr/local/bin | ||
100 | + sudo make prefix=/usr/local install | ||
101 | + | ||
102 | + # Create a symlink for GitLab | ||
103 | + sudo ln -s /usr/local/bin/git /usr/bin/git | ||
104 | + | ||
77 | **Note:** In order to receive mail notifications, make sure to install a | 105 | **Note:** In order to receive mail notifications, make sure to install a |
78 | mail server. By default, Debian is shipped with exim4 whereas Ubuntu | 106 | mail server. By default, Debian is shipped with exim4 whereas Ubuntu |
79 | does not ship with one. The recommended mail server is postfix and you can install it with: | 107 | does not ship with one. The recommended mail server is postfix and you can install it with: |