Type brew install gnupg gnupg2 at a Terminal prompt to install GnuPG. We have to install GnuPG since the installation of RVM needs to add some public keys of RVM to our computer. GnuPG (with binary name gpg) is an application used for public key encryption using the OpenPGP protocol, but also verification of signatures. usr/bin/ruby -e '$(curl -fsSL )'Īfter the installation, remember to close and re-open your terminal. Type the following code at a Terminal prompt to install Homebrew. It can install the stuff you need that Apple does not have.
However, if you are not satisfied with the Ruby version or if you have multiple apps that run on different Ruby version, I would recommend you use RVM to manage Ruby. If you are satisfied with the Ruby version, you can type gem install rails -no-ri -no-rdoc to install Rails. You can type ruby -v at a Terminal prompt to check Ruby version and see result like: ruby 2.3.3p222 ( revision 56859)