Skip to content

Instantly share code, notes, and snippets.

@fredrick
Created September 19, 2011 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredrick/1226653 to your computer and use it in GitHub Desktop.
Save fredrick/1226653 to your computer and use it in GitHub Desktop.
# the rest of this snippet assumes installation of libxml 2.7.8. YMMV.
brew install libxml2
brew link libxml2
# install libxslt from source
wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
tar -zxvf 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.8
make
sudo make install
gem install nokogiri -- --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment