troubles with nokogiri gem on mountain lion using bundler-Collection of common programming errors

This works on the latest Xcode CLT, mountain lion and mavericks, and nokogiri 1.6.1

exactly nokogiri’s patches as brew formulas libxslt and libxml2

curl -L https://gist.githubusercontent.com/steakknife/8969368/raw/install_nokogiri_brew_osx.sh | bash

if you dont trust https pipe to shell, here’s the script raw url. [gist url]

Way faster and gives a known good, keg-only copy of libiconv and nokogiri’s libxml2 and libxslt. System libxml2 isn’t touched.

This takes a couple minutes and eats up 100 MiB+ when installed.

gem install nokogiri

Either way, libxml2 needs to become more stable or it’s a de-facto fork and more work for everyone.

Don’t bother link-ing libxml2 or libxslt, sudo anything, or make install libiconv either, these are unnecessary and fragile.