Skip to content

Instantly share code, notes, and snippets.

@mrsweaters
Created October 5, 2011 21:53
Show Gist options
  • Save mrsweaters/1265856 to your computer and use it in GitHub Desktop.
Save mrsweaters/1265856 to your computer and use it in GitHub Desktop.
brew install libxml2
brew link libxml2
brew install https://raw.github.com/adamv/homebrew/master/Library/Formula/libxslt.rb
brew link libxslt
brew install libiconv
brew link libiconv
if you get "Fixing ld: warning: in /usr/local/lib/libz.dylib, file is not of required architecture" error
cd /usr/local/lib/libz.dylib
sudo mv libz.dylib libz.dylib.original
sudo cp -rf /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libz.dylib .
FINALLY
gem install nokogiri -- --with-xml2-dir=/usr/local/Cellar/libxml2/2.7.8 --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/
@mhayes
Copy link

mhayes commented Oct 5, 2011

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment