问题描述
我有一个新的mac pro(OS X 10.9.5),我从头开始设置。我去安装RVM,它说的第一件事是:
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:
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
当我尝试我得到:
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
zsh: command not found: gpg
有人可以解释什么 gpg
Can someone explain what
gpg
is, why I dont already have it, and how do I get it the right way.
推荐答案
GnuPG (二进制名称
gpg
)是用于使用OpenPGP协议进行公钥加密的应用程序,还包括签名验证加密签名,如果使用正确,还可以验证发布者)。在某种程度上,你可以说是OpenPGP的OpenSSL是为X.509和TLS。
GnuPG (with binary name
gpg
) is an application used for public key encryption using the OpenPGP protocol, but also verification of signatures (cryptographic signatures, that also can validate the publisher if used correctly). To some extend, you could say it's for OpenPGP what OpenSSL is for X.509 and TLS.
与大多数Linux发行版(大量使用GnuPG确保未遏制软件在其软件包存储库中),Mac OS X不会带有操作系统的GnuPG,因此您必须自己安装它。
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 operating system, so you have to install it on your own.
可能的来源包括:
套件管理员: code> brew install gnupg gnupg2
- 套件管理员,它还带来了GUI应用程序和集成到Apple Mail中
- Package manager Homebrew:
brew install gnupg gnupg2
- Package manager MacPorts:
sudo port install gnupg gnupg2
- Install from GPGTools, which also brings GUI applications and integration in Apple Mail
这篇关于如何解决“gpg:command not found” RVM安装过程中出现错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!