Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created December 17, 2012 20:37
Show Gist options
  • Save chadoh/4321970 to your computer and use it in GitHub Desktop.
Save chadoh/4321970 to your computer and use it in GitHub Desktop.
Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.8.0
gem uninstall nokogiri -xI;
brew update;
brew uninstall libxml2;
brew install libxml2 --with-xml2-config;
brew link libxml2;
brew install libxslt;
brew unlink libxslt;
gem install nokogiri -v 1.5.5 -- \
--with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2 \
--with-xml2-lib=/usr/local/Cellar/libxml2/2.8.0/lib \
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment