xcode-select --install
brew install rbenv ruby-build openssl@3 readline libyaml
# enable rbenv in your shell
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
source ~/.zshrc
# install Ruby 4
rbenv install 4.0.0
rbenv global 4.0.0
ruby -v
Created
January 1, 2026 22:27
-
-
Save diegopacheco/b3e4c771daec736901d2cf329aee3334 to your computer and use it in GitHub Desktop.
Install Ruby 4 on MAcOS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment