The standard way of building GnuPG is by building and installing all required libraries first and then to build GnuPG. Use this build oder:

  1. libgpg-error
  2. npth
  3. libgcrypt
  4. libassuan
  5. libksba
  6. gnupg


With the Speedo system it is possible to quickly build everything with just a few commands. To avoid building with root permissions but properly install GnuPG anyway, it is suggested to install into the home directory. This requires these preparations:


If sufficient development tools are installed, you may now simply run these commands:

  mkdir src
  cd src  
  bzcat gnupg-2.1.0.tar.bz2 | tar xf -
  cd gnupg-2.1.0
  make -f build-aux/ native INSTALL_PREFIX="$HOME"

The speedo makefile downloads all dependencies using an online list of current library versions, checks the signatures of the downloaded tarballs, and builds them all in the right order. Use the target "help" instead of "native" to see other options. Note that a version of gpg must have been installed for that to work; on most Linux systems a gpg version (commonly version 1.4) is part of the core system.

There is no Pinentry in that new installation directory and thus by default gpg-agent won’t find one. You may either use the pinentry-program option in gpg-agent.conf or install a symlink to an existing pinentry, like

  cd ~/bin
  ln -s /usr/bin/pinentry .

Build2.1_Unix (last edited 2014-11-10 07:36:48 by Werner Koch)