Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4570443e
Commit
4570443e
authored
May 07, 2019
by
John Cai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs to describe how to compile git with libpcre2
parent
4f447e0f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
doc/install/installation.md
doc/install/installation.md
+24
-2
No files found.
doc/install/installation.md
View file @
4570443e
...
...
@@ -99,7 +99,20 @@ sudo apt-get install -y git-core
git
--version
```
Is the system packaged Git too old? Remove it and compile from source.
Starting with GitLab 12.0, Git is required to be compiled with
`libpcre2`
.
Find out if that's the case:
```
sh
ldd /usr/local/bin/git |
grep
pcre2
```
The output should be similar to:
```
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f08461c3000)
```
Is the system packaged Git too old, or not compiled with pcre2? Remove it and compile from source:
```
sh
# Remove packaged Git
...
...
@@ -108,12 +121,21 @@ sudo apt-get remove git-core
# Install dependencies
sudo
apt-get
install
-y
libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential
# Download and compile pcre2 from source
curl
--silent
--show-error
--location
https://ftp.pcre.org/pub/pcre/pcre2-10.33.tar.gz
--output
pcre2.tar.gz
tar
-xzf
pcre2.tar.gz
cd
pcre2-10.33
chmod
+x configure
./configure
--prefix
=
/usr
--enable-jit
make
make
install
# Download and compile from source
cd
/tmp
curl
--remote-name
--location
--progress
https://www.kernel.org/pub/software/scm/git/git-2.21.0.tar.gz
echo
'85eca51c7404da75e353eba587f87fea9481ba41e162206a6f70ad8118147bee git-2.21.0.tar.gz'
| shasum
-a256
-c
-
&&
tar
-xzf
git-2.21.0.tar.gz
cd
git-2.21.0/
./configure
./configure
--with-libpcre
make
prefix
=
/usr/local all
# Install into /usr/local/bin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment