![如何在 cygwin 上安装 gpg2?](https://linux22.com/image/1535134/%E5%A6%82%E4%BD%95%E5%9C%A8%20cygwin%20%E4%B8%8A%E5%AE%89%E8%A3%85%20gpg2%EF%BC%9F.png)
尝试在 win10 上安装 gpg2。按照此线程底部的答案操作;如何在 cygwin 上安装 gpg?目前缺失
但是在尝试软链接它们时遇到了问题;
当我检查新的下载时,我有“正确”的版本;
$ /c/Program\ Files\ \(x86\)/GnuPG/bin/gpg.exe --version
gpg (GnuPG) 2.1.21
libgcrypt 1.7.6
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:/Users/xxxxxxxxx/AppData/Roaming/gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
旧版本是;
$ gpg --version
gpg (GnuPG) 1.4.20
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
两者都喜欢;
$ ln -s /c/Program\ Files\ \(x86\)/GnuPG/bin/gpg.exe /usr/bin/gpg2
ln: failed to create symbolic link '/usr/bin/gpg2': File exists
$ ln -s /c/Program\ Files\ \(x64\)/GnuPG/bin/gpg-agent.exe /usr/bin/gpg-agent
ln: failed to create symbolic link '/usr/bin/gpg-agent': File exists
我不明白为什么我会收到此消息;
$ gpg2
C:/msys64/usr/bin/gpg2: error while loading shared libraries: ?: cannot open
shared object file: No such file or directory
我这样做的原因是;
$ \curl -sSL https://get.rvm.io | bash -s stable
ERROR: Could not find GNU compatible version of 'tar' command, make sure it's available first before continuing installation.
如果有其他方法可以安装 RVM,我会很高兴知道
答案1
答案2
据 David 报道,GNU Privacy Guard 版本 2 可在Cygwin
https://www.cygwin.com/ml/cygwin-announce/2017-06/msg00080.html
作为 1 的最新版本
https://sourceware.org/ml/cygwin-announce/2016-08/msg00109.html
两个版本并行共存。