Last active
December 25, 2015 17:39
-
-
Save sikachu/7014735 to your computer and use it in GitHub Desktop.
Get rid of libxml2 version mismatch when running Nokogiri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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