Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 417 Bytes

installing-ruby.md

File metadata and controls

33 lines (23 loc) · 417 Bytes

How to install Ruby on macOS

Install rbenv:

brew install rbenv

List available versions:

rbenv install -l

Install the latest version:

rbenv install 3.1.2

Add to .bash_profile.plugins:

# Configure Ruby
eval "$(rbenv init - bash)"
export RBENV_VERSION=3.1.2
gem install bundler

Finally, open a new terminal session to use Ruby.