Skip to content

Instantly share code, notes, and snippets.

@emptymalei
Last active May 8, 2019 18:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emptymalei/2e4a58f2dc76a582422e537ed6252395 to your computer and use it in GitHub Desktop.
Save emptymalei/2e4a58f2dc76a582422e537ed6252395 to your computer and use it in GitHub Desktop.
gem install nokogiri problem
An error occurred while installing nokogiri
(1.8.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.8.0'
--source 'https://rubygems.org/'` succeeds before
bundling.
gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
or
1. bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib/
2. bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment