Created
August 1, 2012 10:13
-
-
Save croaker/3225628 to your computer and use it in GitHub Desktop.
Various build parameters for ruby & gems using rbenv and homebrew
This file contains hidden or 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
# Installing ruby with homebrew's readline & xml libs | |
brew install readline | |
brew install libxml2 --with-xml2-config | |
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline) \ | |
--with-libxml2-dir=$(brew --prefix libxml2)" rbenv install 1.9.3-p194 | |
# Installing nokogiri with homebrew's xml libs | |
brew install libxslt | |
gem install nokogiri -- --with-xml2-include=$(brew --prefix libxml2)/include \ | |
--with-xml2-lib=$(brew --prefix libxml2)/lib --with-xslt-dir=$(brew --prefix libxslt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment