Skip to content

Instantly share code, notes, and snippets.

@abepetrillo
Created September 4, 2014 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abepetrillo/2390b21ef343bf0fbbfc to your computer and use it in GitHub Desktop.
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
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