Created
September 4, 2014 09:14
-
-
Save abepetrillo/2390b21ef343bf0fbbfc to your computer and use it in GitHub Desktop.
Upgrade ruby from 1.9.3-p545 to 2.1..2(p95) using rbenv
This file contains 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
Get the latest `ruby-build` from `brew`: | |
```bash | |
brew upgrade ruby-build --HEAD | |
``` | |
Make sure 2.1.2 is available in the list: | |
```bash | |
rbenv install --list | |
``` | |
Install 2.1.2 | |
```bash | |
rbenv install 2.1.2 | |
``` | |
You should now be able to use rbenv as usual: | |
`rbenv global 2.1.2` | |
Check it worked with `ruby -v`, you should get: | |
`ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment