Skip to content

Instantly share code, notes, and snippets.

@robotmay
Forked from fabioyamate/nokogiri
Created July 9, 2010 14:47
Show Gist options
  • Save robotmay/469546 to your computer and use it in GitHub Desktop.
Save robotmay/469546 to your computer and use it in GitHub Desktop.
# using rvm with ruby-1.8.7-p249
# latest version 2.7.7 2010-06-17
sudo brew install libxml2
# installing libxslt from source code
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
tar -xzvf libxslt-1.1.26.tar.gz
cd libxslt-1.1.26
./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7
make
sudo make install
# Link the libraries
sudo brew link libxml2
sudo brew link libxslt
# installing nokogiri with this new compiled libs
sudo gem install nokogiri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment