07-18-2023, 11:07 PM
There a lot of of misleading answers that work. I thought it was worth mentioning the steps from the [`rbenv` README](
1. `$ brew install rbenv`
2. `$ rbenv init` **and follow** the instructions it gives you. This is what I got:
```
~ $ rbenv init
# Load rbenv automatically by appending
# the following to ~/.bash_profile:
eval "$(rbenv init -)"
```
I updated my `~/.bash_profile`...
3. Close terminal and open it again
4. Verify it's working correctly by running:
```
$ curl -fsSL
```
5. Now just install the version you want by doing: `rbenv install <version>`
[To see links please register here]
).1. `$ brew install rbenv`
2. `$ rbenv init` **and follow** the instructions it gives you. This is what I got:
```
~ $ rbenv init
# Load rbenv automatically by appending
# the following to ~/.bash_profile:
eval "$(rbenv init -)"
```
I updated my `~/.bash_profile`...
3. Close terminal and open it again
4. Verify it's working correctly by running:
```
$ curl -fsSL
[To see links please register here]
| bash```
5. Now just install the version you want by doing: `rbenv install <version>`