Skip to content

Instantly share code, notes, and snippets.

@misodengaku
Created April 23, 2015 13:47
Show Gist options
  • Save misodengaku/103b1a0dd96287819111 to your computer and use it in GitHub Desktop.
Save misodengaku/103b1a0dd96287819111 to your computer and use it in GitHub Desktop.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby22 -r ./siteconf20150423-16182-pnl9lp.rb extconf.rb --use-system-libraries
checking for cmake... yes
checking for gmake... yes
checking for pkg-config... yes
Building Rugged using system libraries.
libgit2 version is not compatible
*** extconf.rb failed ***
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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)22
--use-system-libraries
--with-git2-dir
--without-git2-dir
--with-git2-include
--without-git2-include=${git2-dir}/include
--with-git2-lib
--without-git2-lib=${git2-dir}/lib64
--with-libgit2-config
--without-libgit2-config
--with-pkg-config
--without-pkg-config
extconf failed, exit code 1
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/rugged-0.21.4 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/rugged-0.21.4/gem_make.out
An error occurred while installing rugged (0.21.4), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.4'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment