nokogiri with brewed libxml2

February 26th 2010

This is how I got nokogiri working on Leopard without the I_KNOW_I_AM_USING_AN_OLD_AND_BUGGY_VERSION_OF_LIBXML2 warning

Install libxml2:

brew install libxml2 brew link libxml2

Install nokogiri

gem install nokogiri — —with-xml2-include=/usr/local/include/libxml2 —with-xml2-lib=/usr/local/lib/