

We passed Ruby as an argument, so the command is finding the Ruby executable location. The which command allows us to see where on the computer an executable file lives. Did you know that a version of Ruby comes installed on your Mac by default? We can see that by typing some commands into our terminal. When you open a terminal (assuming zero configuration), you start at your home directory.

This brings up the macOS spotlight search, a search utility for opening apps on your Mac. You can quickly open the terminal by doing the following: The terminal application on macOS is an operating system command line interface (CLI) that comes installed on new Macs. TLDR-Run these commands from the terminal /usr/bin/ruby -e "$(curl -fsSL )"Įcho 'export PATH="/usr/local/opt/ruby/bin:$PATH"' > ~/.bash_profile

While Ruby is used quite frequently for web development, it’s also popular as a scripting language. Created in 1996 by Yukihiro Matsumoto, Ruby became really popular in the late 2000s with the introduction of the Ruby on Rails web framework. Ruby is an open-source programming language with a strong developer focus. If you’ve done this sort of thing before and just need some directions, I’ve included a TLDR section showing what commands to run. So if you’re totally new, don’t worry! I’ll list each step and follow it with an “extra credit” section where I’ll explain that step in depth. Along the way, we’ll learn about the steps involved and various bits of knowledge required to get up and going. In this post, we’re going to show you how to install Ruby on your Mac.
