colinxy / colinxy.github.io

My blog, mostly technical
https://colinxy.github.io
0 stars 1 forks source link

Emacs 25 EasyPG Issue #11

Open colinxy opened 7 years ago

colinxy commented 7 years ago

https://colinxy.github.io/software-installation/2016/09/24/emacs25-easypg-issue.html

yu-yuxuan commented 7 years ago

Thanks, solve my problem after upgrading to the emacs 25.

strow commented 7 years ago

Thank you thank you. What a pain...

ianbarton commented 7 years ago

Thanks! I have been struggling with this all morning!

sometimesfood commented 7 years ago

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.

scutdk commented 7 years ago

gpg21 is currently unavailable in brew. How can I fix with this? No formula found for "gpg21".

colinxy commented 7 years ago

@scutdk

brew tap homebrew/versions
brew install gnupg21
sometimesfood commented 7 years ago

@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"))
scutdk commented 7 years ago

@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.

sometimesfood commented 7 years ago

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
dancar commented 7 years ago

@colinxy 👍 👍 👍

vv111y commented 7 years ago

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
sometimesfood commented 7 years ago

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.

sometimesfood commented 7 years ago

You can check your GPG version using the --version command:

~ % gpg2 --version | head -n 1
gpg (GnuPG) 2.1.21
vv111y commented 7 years ago

Thanks @sometimesfood , it does work now after dealing with homebrew symlinking. The next hurdle is getting org-encrypt to work...

elijahmcneish commented 6 years ago

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.

pzel commented 5 years ago

This suddenly broke for me today (void linux), and your fix worked immediately. Thank you so much!

bobdrad commented 5 years ago

Thanks much!

freesteph commented 4 years ago

Still relevant today, thanks so much for the fix. I wonder why loopback isn't the default?

rolojf commented 2 years ago

Thanks. This is still relevant.

dglb commented 2 years ago

Thanks. This is still relevant.

still !