Last active
August 29, 2015 14:08
-
-
Save yitznewton/670c2f3f8bb536282406 to your computer and use it in GitHub Desktop.
Installing Ruby on Mac with rbenv
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
| 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