如何在cygwin上安装gpg2?


2

试图在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,我会很高兴知道


你为什么不通过Cygwin安装它? gnupg2-2.1.21-1 - gnupg2:用于安全通信和数据存储的GNU工具 可从Cygwin获得
DavidPostill

我做到了,但他们的设置只有gpg 1.4; imagebin.ca/v/3SfnlmLOcfp9
Eirik Kvalheim

现在研究如何安装单个软件包,在Cygwin上不熟悉它。
Eirik Kvalheim

我找到了apt-cyg,但后来我必须安装 wget的 柏油 呆子 bzip2的 ,然后它更容易解决问题,不是吗?
Eirik Kvalheim

不,他们没有。看我的回答。
DavidPostill

Answers:


4

我正在尝试在win10上安装gpg2

无需使用您提供的链接中的复杂说明安装gpg2。

gpg2 包可以通过正常的Cygwin安装程序获得。如果使用它安装它将正确配置。

  • 运行安装程序

  • 继续,直到进入“选择包”屏幕

  • 将“查看”设置为“完整”

  • 将“搜索”设置为“gnupg2”

  • 单击第一个“跳过”(它将更改为版本号2.1.21-1)

  • 单击“下一步”进行安装

    enter image description here


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.