Skip to content

Instantly share code, notes, and snippets.

@jpinnix
Created July 9, 2012 21:46
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 jpinnix/3079208 to your computer and use it in GitHub Desktop.
Save jpinnix/3079208 to your computer and use it in GitHub Desktop.
Installing Nokogiri on Lion using Homebrew
# From http://nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x
$ brew update
$ brew install libxml2 libxslt
$ brew link libxml2 libxslt
$ wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
$ tar xvfz libiconv-1.13.1.tar.gz
$ cd libiconv-1.13.1
$ ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
$ make
$ sudo make install
$ gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.8.0/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.8.0/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment