Skip to content

Instantly share code, notes, and snippets.

@h3h
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h3h/84132561ae939293a998 to your computer and use it in GitHub Desktop.
Save h3h/84132561ae939293a998 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
number_of_cores=`sysctl -n hw.ncpu`
brew update && \
brew upgrade ruby-build libxml2 libxslt libiconv
brew link --force libiconv && \
bundle config --global build.nokogiri "--with-xml2-include=/usr/local/include --with-xml2-lib=/usr/local/lib --with-xslt-dir=/usr/local/opt/libxslt --with-iconv-include=/usr/local/include --with-iconv-lib=/usr/local/lib" && \
bundle config --global jobs `expr $number_of_cores - 1` && \
rbenv install 2.1.5 && \
gem install bundler rbenv-rehash && \
bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment