Created
October 31, 2013 11:41
-
-
Save joshnesbitt/7248307 to your computer and use it in GitHub Desktop.
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
# Libs | |
brew uninstall libxml2 libxslt | |
brew install libxml2 libxslt | |
brew link libxml2 libxslt | |
# Iconv | |
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 | |
# Nokogiri | |
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 \ | |
--with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib \ | |
--with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 \ | |
--with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include \ | |
--with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib | |
bundle config build.nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --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