Skip to main content

Install Ruby

## Install ruby using rbenv

brew install rbenv ruby-build

Add the following to ~/.zshrc

function rbenv_load {
eval "$(rbenv init - zsh)"
}

List latest stable ruby versions

rbenv install -l

Install ruby version

rbenv install 3.2.2

Set a global ruby version

rbenv global 3.2.2

Set a local ruby version

rbenv local 3.2.2

Instal ruby gems

gem install bundler

List all ruby versions known to rbenv

rbenv versions

Other