Commit 7d8998cf38ba9bc9ec72853356cf94f675bfaac5

Authored by Dmitriy Zaporozhets
2 parents cddec75d 56863dcb

Merge branch 'install_git_from_source' of /home/git/repositories/gitlab/gitlabhq

Showing 1 changed file with 30 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 52  
53 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 57 Make sure you have the right version of Python installed.
58 58  
... ... @@ -74,6 +74,33 @@ Make sure you have the right version of Python installed.
74 74 # For reStructuredText markup language support install required package:
75 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, for example 1.7.12 or 1.8.4
  83 + git --version
  84 +
  85 +Is the 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 libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential
  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 + # When editing config/gitlab.yml (Step 6), change the git bin_path to /usr/local/bin/git
  103 +
77 104 **Note:** In order to receive mail notifications, make sure to install a
78 105 mail server. By default, Debian is shipped with exim4 whereas Ubuntu
79 106 does not ship with one. The recommended mail server is postfix and you can install it with:
... ... @@ -167,6 +194,8 @@ You can change `6-1-stable` to `master` if you want the *bleeding edge* version,
167 194  
168 195 # Make sure to change "localhost" to the fully-qualified domain name of your
169 196 # host serving GitLab where necessary
  197 + #
  198 + # If you installed Git from source, change the git bin_path to /usr/local/bin/git
170 199 sudo -u git -H editor config/gitlab.yml
171 200  
172 201 # Make sure GitLab can write to the log/ and tmp/ directories
... ...