-
-
Save jney/1229160 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
#!/bin/sh | |
## | |
# to install : | |
# $ curl -L "https://gist.github.com/gists/path/to/raw/gist/nokogiri.sh" | sh | |
set -e | |
echo "installing libraries" | |
brew install libxml2 | |
brew install libxslt | |
brew install libiconv | |
echo "linking libraries" | |
brew link libxml2 | |
brew link libxslt | |
brew link libiconv | |
echo "installing gem" | |
gem install nokogiri -- --with-xml2-include="$(brew --prefix libxml2)/include/libxml2/" \ | |
--with-xml2-lib="$(brew --prefix libxml2)/lib/" \ | |
--with-xslt-include="$(brew --prefix libxslt)/include/libxslt/" \ | |
--with-xslt-lib="$(brew --prefix libxslt)/lib/" \ | |
--with-iconv-include="$(brew --prefix libiconv)/include/" \ | |
--with-iconv-lib="$(brew --prefix libiconv)/lib/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment