Open colinxy opened 7 years ago
Thanks, solve my problem after upgrading to the emacs 25.
Thank you thank you. What a pain...
Thanks! I have been struggling with this all morning!
Thanks for the article.
I prefer not to install gpg21 since it is currently only available from homebrew-versions, so I simply installed gpg1 and set epg-gpg-program
to "gpg1"
using custom-set-variables
.
gpg21 is currently unavailable in brew. How can I fix with this?
No formula found for "gpg21".
@scutdk
brew tap homebrew/versions
brew install gnupg21
@scutdk: You don't need gpg 2.1, you can just customize epg-gpg-program
.
This works fine for me:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(epg-gpg-program "gpg1"))
@colinxy @sometimesfood Thanks so much for ur quick reply. This has frustrated me for days. I actually read the manual of homebrew versions just not to the brew tap part. It's my first time heard of brew tap though I'm quite used to similar concepts like yum/apt sources. U saved me a lot of time going through the manual. Maybe that's why I always prefer stackoverflow which is somewhere you can always get a quick answer. Again for u two's detailed reply.
By now, gpg 2.1 has landed in homebrew and @colinxy's fix does not require homebrew-versions anymore:
~ % brew info gpg | head -n6
gnupg: stable 2.1.20 (bottled)
GNU Pretty Good Privacy (PGP) package
https://www.gnupg.org/
/usr/local/Cellar/gnupg/2.1.20 (136 files, 10.1MB) *
Poured from bottle on 2017-04-06 at 19:11:06
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gnupg.rb
@colinxy 👍 👍 👍
Help, not working for me. OsX 10.11.6 emacs 25.0.50 still getting gpg: invalid option "--pinentry-mode"
using:
(custom-set-variables
'(epg-gpg-program "gpg2"))
(setf epa-pinentry-mode 'loopback)
EDIT:
nevermind. Problems with symlinks and brew. I did do brew link --overwrite gnupg
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/addgnupghome
Target /usr/local/bin/addgnupghome
is a symlink belonging to gnupg2. You can unlink it:
brew unlink gnupg2
To force the link and overwrite all conflicting files:
brew link --overwrite gnupg
still getting gpg: invalid option "--pinentry-mode"
What is your GPG version? It should be 2.1 or higher if you want to use the --pinentry-mode command.
You can check your GPG version using the --version
command:
~ % gpg2 --version | head -n 1
gpg (GnuPG) 2.1.21
Thanks @sometimesfood , it does work now after dealing with homebrew symlinking. The next hurdle is getting org-encrypt to work...
Thank you so much. For some reason, on my Arch install, this didn't break until the emacs 26 upgrade, but all is well now.
This suddenly broke for me today (void linux), and your fix worked immediately. Thank you so much!
Thanks much!
Still relevant today, thanks so much for the fix. I wonder why loopback
isn't the default?
Thanks. This is still relevant.
Thanks. This is still relevant.
still !
https://colinxy.github.io/software-installation/2016/09/24/emacs25-easypg-issue.html