I was upgraded from RHEL 7.6 to 7.8 last week. After upgrade my emacs (v25.3) was broken and I got the following error:
error while loading shared libraries: libMagickWand.so.5: cannot open shared object file: No such file or directory
I could not figure out a solution (partly, I think, because our RHN server is down) so I downloaded/installed emacs 27.1. Now, I cannot open a gpg file. I get the following error in emacs:
GPG error: "no usable configuration", OpenPGP
I tried solutions offered here and here, but nothing has worked so far.
One solution suggested adding this line to .emacs
(custom-set-variables '(epg-gpg-program "/usr/local/bin/gpg2"))
However, adding that results in the following error: "Wrong type argument: arrayp, nil"
I did not blow away the old emacs install prior to installing 27.1, but I doubt that is the problem.
Any help on resolving this is appreciated.
sudo apt-get install gpg2
solved my issue (also needed to have(custom-set-variables '(epg-gpg-program "/usr/local/bin/gpg2"))
in my init.el).