Complete Ubuntu compile of GnuPG

murphy mac3iii at
Wed Nov 22 17:49:53 CET 2017

On 11/22/2017 06:00 AM, Dmitry Gudkov wrote:
> ...clear instructions to compile the latest version for Ubuntu 16.04.3?
Hi Dmitry - I haven't finished testing Werner's suggestions but this
will work on Ubuntu 16.04:
1.  create an empty file: and cut, paste and save the following:

cd ~/Downloads
tar xf $version.tar.bz2
cd $version
sudo apt-get update
sudo apt-get install -y libldap2-dev
sudo apt-get install -y gtk+-2
sudo apt-get install -y rng-tools
sudo apt-get install -y libbz2-dev
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y libgmp-dev
sudo apt-get install -y nettle-dev
sudo apt-get install -y libgnutls28-dev
sudo apt-get install -y libsqlite3-dev
sudo apt-get install -y adns-tools
sudo apt-get install -y libreadline-dev
sudo apt-get install -y qtbase5-dev
sudo apt-get install -y pinentry-gtk2
sudo apt-get install -y pcscd scdaemon
sudo make -f build-aux/ INSTALL_PREFIX=/usr/local
speedo_pkg_gnupg_configure='--enable-g13 --enable-wks-tools' native
sudo ldconfig

2. run the above in the location you saved it: sudo bash
3. after maybe 5-10 minutes it should complete the compilation, check
the install: gpg --version
4. create subdirectories (if necessary) with: gpg -K
5. use nano to create a configuration file: nano ~/.gnupg/gpg-agent.conf
6. add the line: pinentry-program /usr/bin/pinentry-gtk-2
7. save by ctrl-x, y, enter

One final note for 32 bit machines or operating systems (VM in 32 bit
mode or Raspberry Pi) I found the following change is needed:

1. sudo nano /etc/
2. add as the first line:  include /etc/
3. save
4. sudo ldconfig

Hope it works for you!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the Gnupg-users mailing list