Skip to content

Instantly share code, notes, and snippets.

@mariochavez
Forked from ppworks/nokogiri-warning.md
Last active August 29, 2015 14:12
Show Gist options
  • Save mariochavez/99e776a8bb64eb16b123 to your computer and use it in GitHub Desktop.
Save mariochavez/99e776a8bb64eb16b123 to your computer and use it in GitHub Desktop.
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1

or

WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0
rm vendor/.bundle
brew update
brew uninstall libxml2
brew install libxml2 --with-xml2-config
brew link --force libxml2
 
brew install libxslt
brew link --force libxslt

brew install libiconv
brew link --force libiconv
 
# bundle config build.nokogiri -- --with-xml2-dir=/usr/local --with-xslt-dir=/usr/local --with-iconv-dir=/usr/local
bundle config build.nokogiri -- --with-xml2-dir=/usr/local --with-xslt-dir=/usr/local --use-system-libraries
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment