Skip to content

Instantly share code, notes, and snippets.

@sikachu
Last active December 25, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sikachu/7014735 to your computer and use it in GitHub Desktop.
Save sikachu/7014735 to your computer and use it in GitHub Desktop.
Get rid of libxml2 version mismatch when running Nokogiri
# Note: This assume that you're using libxml2 from Homebrew, which is keg-only.
# Run this command:
$ bundle config build.nokogiri --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 --with-xml2-lib=/usr/local/opt/libxml2/lib --with-xslt-dir=/usr/local/opt
# Remove and rebundle. You use Bundler, right?
$ yes | gem uninstall nokogiri --force
$ bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment