Commit 7649278b authored by Katrin Leinweber's avatar Katrin Leinweber Committed by Achilleas Pipinellis

Docs: Prefer Ubuntu's Git-PPA over source compiling

parent a5ae4265
...@@ -142,21 +142,31 @@ Starting with GitLab 12.0, Git is required to be compiled with `libpcre2`. ...@@ -142,21 +142,31 @@ Starting with GitLab 12.0, Git is required to be compiled with `libpcre2`.
Find out if that's the case: Find out if that's the case:
```shell ```shell
ldd /usr/local/bin/git | grep pcre2 ldd $(which git) | grep pcre2
``` ```
The output should be similar to: The output should contain `libpcre2-8.so.0`.
```plaintext Is the system packaged Git too old, or not compiled with pcre2?
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f08461c3000) Remove it:
```shell
sudo apt-get remove git-core
``` ```
Is the system packaged Git too old, or not compiled with pcre2? Remove it and compile from source: On Ubuntu, install Git from [its official PPA](https://git-scm.com/download/linux):
```shell ```shell
# Remove packaged Git # run as root!
sudo apt-get remove git-core add-apt-repository ppa:git-core/ppa
apt update
apt install git
# repeat libpcre2 check as above
```
On Debian, use the following compilation instructions:
```shell
# Install dependencies # Install dependencies
sudo apt-get install -y libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential sudo apt-get install -y libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential
...@@ -180,7 +190,7 @@ make prefix=/usr/local all ...@@ -180,7 +190,7 @@ make prefix=/usr/local all
# Install into /usr/local/bin # Install into /usr/local/bin
sudo make prefix=/usr/local install sudo make prefix=/usr/local install
# When editing config/gitlab.yml (Step 5), change the git -> bin_path to /usr/local/bin/git # When editing config/gitlab.yml later, change the git -> bin_path to /usr/local/bin/git
``` ```
For the [Custom Favicon](../user/admin_area/appearance.md#favicon) to work, GraphicsMagick For the [Custom Favicon](../user/admin_area/appearance.md#favicon) to work, GraphicsMagick
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment