How to get rid of those pesky
WARNING: Nokogiri was built against LibXML version X, but has dynamically loaded Z
warnings on Mac OS X (Mountain) Lion:
gem uninstall nokogiri libxml-ruby
Continue to step 5 if you already recently brewed libxml2 and libxslt...brew update
brew install libxml2 --with-xml2-config
brew install libxslt
gem install nokogiri -- --with-xml2-include=/usr/local/opt/libxml2/include --with-xml2-lib=/usr/local/opt/libxml2/lib --with-xslt-dir=/usr/local/opt/libxslt
Forked and adapted from: https://gist.github.com/devpuppy/1349681