Skip to content

Instantly share code, notes, and snippets.

@carolineartz
Forked from mariochavez/nokogiri-warning.md
Last active August 29, 2015 14:20
Show Gist options
  • Save carolineartz/6110fec0043845ad43c5 to your computer and use it in GitHub Desktop.
Save carolineartz/6110fec0043845ad43c5 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