1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| brew install rbenv ruby-build
# run this and follow the printed instructions:
rbenv init
# list latest stable versions:
rbenv install -l
# list all local versions:
rbenv install -L
# install a Ruby version:
rbenv install 3.2.0
rbenv global 3.2.0 # set the default Ruby version for this machine
# or:
rbenv local 3.2.0 # set the Ruby version for this directory
|