use-libxml-from-source
#!/bin/sh# taken mostly from: # http://martinisoftware.com/2009/07/31/nokogiri-on-leopard.html# setup libxml2 wget ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz tar xzvf libxml2-2.7.3.tar.gz cd libxml2-2.7.3 ./configure --prefix=/usr/local make sudo make install cd ..# setup libxslt wget ftp://xmlsoft.org/libxml2/libxslt-1.1.25.tar.gz tar xzvf libxslt-1.1.25.tar.gz cd libxslt-1.1.25 ./configure --prefix=/usr/local --with-libxml-prefix=/usr/local make sudo make install cd ..# now install nokogiri and specify where to get libxml2 from sudo gem install nokogiri -- --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/local/lib
