Skip to content

Installing 9.3.8 fails (gem install re2 -v '1.0.0')

Summary

Installing the 9.3.8 update resulting with:

An error occurred while installing re2 (1.0.0), and Bundler cannot continue.
Make sure that `gem install re2 -v '1.0.0'` succeeds before bundling.

Also reported on StackOverflow: https://stackoverflow.com/questions/45204621/updating-gitlab-from-9-3-7-to-9-3-8-getting-error-installing-re2

Steps to reproduce

Updating from 9.3.7 to 9.3.8

Relevant logs and/or screenshots

Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
	--with-re2-dir
	--without-re2-dir
	--with-re2-include
	--without-re2-include=${re2-dir}/include
	--with-re2-lib
	--without-re2-lib=${re2-dir}/lib
	--with-stdc++lib
	--without-stdc++lib
	--with-re2lib
	--without-re2lib

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/home/git/gitlab/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/re2-1.0.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/re2-1.0.0 for inspection.
Results logged to
/home/git/gitlab/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/re2-1.0.0/gem_make.out

An error occurred while installing re2 (1.0.0), and Bundler cannot continue.
Make sure that `gem install re2 -v '1.0.0'` succeeds before bundling.

In Gemfile:
  re2

Output of checks

NA

Results of GitLab environment info

NA

Results of GitLab application Check

NA

Possible fixes