Last active
August 29, 2015 14:09
-
-
Save h3h/84132561ae939293a998 to your computer and use it in GitHub Desktop.
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
#!/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