postprefix
6/17/2011 - 3:16 AM

libxml2_libxslt_libiconv.sh

# using rvm with ruby-1.8.7-p249

# latest version 2.7.7 2010-06-17
brew install libxml2
brew link libxml2

# latest version 1.13.1 
brew install libiconv
brew link libiconv

# installing libxslt from source code
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7
make
sudo make install

# installing nokogiri with this new compiled libs
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.7/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.7/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26