However, support for Ruby 2.0.0 ended on February 26, 2016.
Also, as you begin to work on more Ruby projects, you’ll need to work with multiple Ruby versions.
Use Spotlight (CMD Space) to open it by typing in "Terminal" and pressing Enter. This is where we'll be putting the following commands via copy and paste.
If you’re using an operating system other than mac OS Sierra 10.12 or mac OS High Sierra 10.13, my friend Chris Oliver has an extensive collection of tutorials on how to install Ruby.By the end of this guide, you will have these things installed and have some very, very easy ways to manage gem dependencies for your different applications / libraries, as well as having multiple Ruby versions installed and usable all at once.We assume you have access to your machine, and that you have an understanding of the basic concepts of Ruby, such as "What is Ruby Gems?Now we'll need to load chruby automatically, which we can do by adding these lines to should succeed. Now you've got a Ruby environment you can use to write your (first? A good read after this would be the official guides for Ruby on Rails.The combination of chruby and ruby-install is such a powerful tool and comes in handy for day-to-day Ruby development.First of all, we're going to need to install some package management script so that we can install packages such as Git, My SQL and other things exceptionally easy.The best package management system on Mac OS X for this is homebrew.Checksums are optional and specified as anchors on the package URL in each definition.(All bundled definitions include checksums.) By default, ruby-build downloads package files from a mirror hosted on Amazon Cloud Front.The first thing we're going to need to install is XCode which you can get from the Mac App Store.After you have that installed, we're going to need to open Terminal to execute a few commands.