Skip to content

Instantly share code, notes, and snippets.

@nateberkopec
Last active January 6, 2020 17:33
Show Gist options
  • Save nateberkopec/5714795 to your computer and use it in GitHub Desktop.
Save nateberkopec/5714795 to your computer and use it in GitHub Desktop.
Fixing your Nokogiri config
# 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