ruby, macos,

Install Ruby on macOS

Oct 30, 2021 · 1 min read · Post a comment

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version manager, is my personal favorite, since it’s easy and convenient to setup. Although the installation steps are pretty much the same on any platform, the focus will be on macOS this time.


  • Homebrew


Step 1. Update brew.

brew install gnupg

Step 2. Install GnuPG.

brew install gnupg

Step 3. Install the GPG keys required for the RVM installation.

gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

Note(s): If you receive the following error gpg: keyserver receive failed: No name, alternatively import the keys.

curl -sSL | gpg --import -
curl -sSL | gpg --import -

Step 4. Install the stable version of RVM.

curl -sSL | bash -s stable

Step 5. Verify installation.

rvm list


No rvm rubies installed yet. Try 'rvm help install'.

Note(s): If you get rvm command not found make sure to close all Terminal sessions and open a new one.

Step 6. Install the latest version of Ruby.

rvm install ruby --latest

Step 7. Confirm the Ruby version.

rvm list 


=* ruby-3.0.0 [ x86_64 ]

# => - current
# =* - current && default
#  * - default


You might get some warnings along the way, but the installation overall is as easy as it gets. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.