Skip to content

Instantly share code, notes, and snippets.

@btel
Created September 12, 2018 08:34
Show Gist options
  • Select an option

  • Save btel/ffd3cf091586e64186db0de9cf6c8a15 to your computer and use it in GitHub Desktop.

Select an option

Save btel/ffd3cf091586e64186db0de9cf6c8a15 to your computer and use it in GitHub Desktop.
Installing nokogiri 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/share/gems/gems/nokogiri-1.8.1/ext/nokogiri
/usr/bin/ruby -r ./siteconf20180912-64-mhghk2.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /usr/local/share/gems/gems/nokogiri-1.8.1 for inspection.
Results logged to /usr/local/lib64/gems/ruby/nokogiri-1.8.1/gem_make.out
An error occurred while installing nokogiri (1.8.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.8.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rails was resolved to 4.2.10, which depends on
actionmailer was resolved to 4.2.10, which depends on
actionpack was resolved to 4.2.10, which depends on
actionview was resolved to 4.2.10, which depends on
rails-dom-testing was resolved to 1.0.8, which depends on
nokogiri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment