Skip to content

Instantly share code, notes, and snippets.

@yitznewton
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save yitznewton/670c2f3f8bb536282406 to your computer and use it in GitHub Desktop.

Select an option

Save yitznewton/670c2f3f8bb536282406 to your computer and use it in GitHub Desktop.
Installing Ruby on Mac with rbenv
brew install rbenv rbenv-gemset rbenv-bundler ruby-build
# add $HOME/.rbenv/bin to $PATH
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile # to enable shims and auto-complete
rbenv install ruby-2.1.3 # or other desired/current version
# change to your project dir, then:
echo '.gems' > .rbenv-gemsets
rbenv local 2.1.3
gem install bundler
# after installing gems, to get access to the new bins:
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment