Installing on Mac OS X
Since Mac OS X ships with Ruby 2.0.0, you need to download a newer version of Ruby that works with Rails 5. The easiest way to do this is to use Homebrew.
Before you start, go to your Utilities folder and drag the Terminal application onto your dock. You’ll be using this during the installation and then frequently as a Rails developer. Open the terminal and run the following command:
| | > ruby -e "$(curl -fsSL \ |
| | https://raw.githubusercontent.com/Homebrew/install/master/install)" |
When it asks you to install the Xcode Command Line Tools, say yes.
Next, you have a choice. You can let Homebrew update your version of Ruby to the latest (currently Ruby 2.3.1). Or you can install rbenv and install a parallel version of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access