JDillon522 JDillon522 - 4 years ago 2387
Ruby Question

How to resolve "gpg: command not found" error during RVM installation?

I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I went to install RVM and the first thing it says to do is:

Install mpapis public key (might need
and or

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3

When I tried I got:

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
zsh: command not found: gpg

I've tried to find a good guide on how to overcome this that also looks trustworthy but I've had no luck.

Can someone explain what
is, why I dont already have it, and how do I get it the right way.

Answer Source

GnuPG (with binary name gpg) is an application used for public key encryption, but also verification of signatures (cryptographic signatures, that also can validate the publisher if used correctly).

Unlike most Linux distributions (which make heavy use of GnuPG for ensuring untampered software within their package repositories), Mac OS X does not bring GnuPG with the system, so you have to install it on your own.

Possible sources are:

  • Package manager Homebrew: brew install gnupg gnupg2
  • Package manager MacPorts: sudo port install gnupg gnupg2
  • Install from GPGTools
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download