
If you need to utilize multiple versions of Ruby and will need to switch back and forth between versions, you may use the corresponding chruby tool here Postmodern/chruby. Voila! You can now install any version of Ruby you choose. Or for latest version: $ ruby-install -latest

If we want Ruby 3.0: $ ruby-install ruby-3.0 Now we can download and install any version of ruby available. Once you have brew, you’re ready to go! First, we must install a tool Postmodern/ruby-install to get the version of Ruby that we want: $ brew install ruby-install (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6. If you don’t have brew, install it by running the following command: $ /bin/bash -c "$(curl -fsSL )" terminal bash zsh beginner When trying to install any Ruby gem on a Mac, people often run into the infamous you don’t have write permissions error like this one: ERROR: While executing gem. The only thing you’ll need before we get started is brew installed on your machine.


With the recent release of Ruby 3.0, I thought it’d be a good idea to make my first post of the year on a quick how-to guide to installing the new (or any) version of Ruby.
