# run this and follow the printed instructions:
rbenv init
# List latest stable versions
rbenv install --list
# Install a specific version
rbenv install 3.2.2
# Activate a specific version
rbenv gloabl 3.2.2
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH