Skip to content

Instantly share code, notes, and snippets.

@sricho
Forked from ronny/install-ruby-via-homebrew.sh
Last active August 29, 2015 14:15
Show Gist options
  • Save sricho/922972f9d6d22a5e5ffc to your computer and use it in GitHub Desktop.
Save sricho/922972f9d6d22a5e5ffc to your computer and use it in GitHub Desktop.
brew update
brew install readline openssl rbenv ruby-build
# or, if you already have those installed, just upgrade ruby-build to get the latest list of rubies
brew update
brew upgrade ruby-build
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline) --with-openssl-dir=$(brew --prefix openssl)" \
rbenv install 2.2.0
rbenv global 2.2.0
gem update --system
gem install bundler
# on the project, when appropriate
rbenv local 2.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment