Install Ruby Mac

Here's a link to my complete guide:

Install Ruby Mac

Below is a summary of the guide.

The guide shows how to install Ruby on Mac. It covers installing Ruby on macOS Big Sur or Catalina with up-to-date and kitchen-tested instructions, and troubleshooting tips, from the author of the book, Learn Ruby on Rails.

In the guide, you'll set up a development environment with Ruby on a Mac. This guide is for beginners as well as experienced developers setting up a new computer. For installing Ruby on Rails, see Install Ruby on Rails on macOS for details about installing Node, Yarn, and Rails for the web application framework.

This installation guide provides complete details with explanations for each step:

It is the most complete guide to installing Ruby on a Mac.

I'll recommend choices and explain how and why.

Installation steps

Here are steps to install Ruby:

Setting up your development environment includes checking that macOS is up to date, installing the Xcode Command Line Tools (to add needed Unix utilities), configuring Git (an important tool for save-as-you-go file storage), installing the Homebrew package manager (to add more software packages), and choosing a software version manager for Ruby.

Installation choices

Before you install Ruby, you should choose Homebrew or a software version manager. You have several choices for version managers. Plus Homebrew and Docker. Here's what I recommend:

See the guide for an explanation of the recommendations. You'll find instructions for installing Ruby using asdf, chruby, or Homebrew.

Before you start, you'll check your macOS version, install Xcode Command Line Tools, install Homebrew so you can either directly install Ruby or install a software version manager, and finally install Ruby with either asdf, chruby, or Homebrew. That's it!