Created
May 31, 2011 23:14
-
-
Save retr0h/1001477 to your computer and use it in GitHub Desktop.
RVM + HomeBrew + Nokogiri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BREW_HOME=$HOME/.homebrew | |
$ brew install libxml2 | |
$ brew link libxml2 | |
$ brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/libxslt.rb | |
$ brew link libxslt | |
$ brew install libiconv | |
$ brew link libiconv | |
$ gem install nokogiri -- --with-xml2-dir=$BREW_HOME/Cellar/libxml2/2.7.8 --with-xslt-dir=$BREW_HOME/Cellar/libxslt/1.1.26 --with-iconv-dir=$BREW_HOME/Cellar/libiconv/1.13.1/ |
Some crosslink love
http://dewey.ws/blog/2011/08/13/nokogiri-rvm-homebrew/
Helped me too. Thanks!
404 not found for line 5
Replace line 5 with
brew install libxslt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solved my libxml2 issues as well. Thanks!