Skip to content

Instantly share code, notes, and snippets.

@croaker
Created August 1, 2012 10:13
Show Gist options
  • Save croaker/3225628 to your computer and use it in GitHub Desktop.
Save croaker/3225628 to your computer and use it in GitHub Desktop.
Various build parameters for ruby & gems using rbenv and homebrew
# 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