Getting Nokogiri to install after upgrading to Mountain Lion
I just upgraded to Mountain Lion and was seeing this deprecation warning:
So instead of leaving it well enough alone, I decided I had to uninstall nokogiri and reinstall it with bundler. When I tried to run bundle, I got this ugly message:
There's basically no info about this on the internets anywhere, as far as I can tell. I tried a bunch of stuff that people mentioned (https://gist.github.com/3177887, http://stackoverflow.com/questions/6802410/warning-nokogiri-was-built-against-libxml-version-2-7-8-but-has-dynamically-lo) but none of it seemed to be working. After digging around forever, I got it working by doing the following:
Installed Xcode 4.4
Installed the command line tools via Xcode preferences > Install
Installed XQuartz 2.7.2 (from xquartz.macosforge.org/trac/wiki)
Whittled around for 45 minutes reading ruby's mkmf.rb, etc.
And finally,
rvm uninstall 1.9.3
rvm install 1.9.3
Looks like ruby just needed to be rebuilt with whatever the Xcode environment on 10.8 is -- after that it installed just as happy as you please.










