Last active
January 6, 2020 17:33
-
-
Save nateberkopec/5714795 to your computer and use it in GitHub Desktop.
Fixing your Nokogiri config
This file contains hidden or 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
# IF NOKOGIRI 1.5.X OR LOWER | |
gem uninstall nokogiri libxml-ruby | |
brew update | |
brew uninstall libxml2 | |
brew install libxml2 --with-xml2-config | |
brew install libxslt | |
bundle config --global build.nokogiri "--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2" | |
bundle | |
# IF NOKOGIRI 1.6 OR HIGHER | |
brew remove --force libxml2 | |
bundle config --delete build.nokogiri | |
gem uninstall nokogiri libxml-ruby | |
bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment