i have 2.2.1 installed
$ ./configure --prefix=/usr/local --enable-large-secmem --with-pinentry-pgm=/usr/local/bin/pinentry-gtk-2
GnuPG v2.2.4 has been configured as follows:
Revision: 558b175 (21899) Platform: GNU/Linux (x86_64-pc-linux-gnu) OpenPGP: yes S/MIME: yes Agent: yes Smartcard: yes (without internal CCID driver) G13: no Dirmngr: yes Gpgtar: yes WKS tools: no Protect tool: (default) LDAP wrapper: (default) Default agent: (default) Default pinentry: /usr/local/bin/pinentry-gtk-2 Default scdaemon: (default) Default dirmngr: (default) Dirmngr auto start: yes Readline support: yes LDAP support: yes TLS support: gnutls TOFU support: yes Tor support: yes
gpg_agent-gpg-agent.o: In function `main':
/home/user/Downloads/gnupg-2.2.4/agent/gpg-agent.c:1038: undefined reference to `assuan_sock_set_system_hooks'
collect2: error: ld returned 1 exit status
Makefile:676: recipe for target 'gpg-agent' failed
make[2]: * [gpg-agent] Error 1
make[2]: * Waiting for unfinished jobs....
mv -f .deps/gpg_protect_tool-cvt-openpgp.Tpo .deps/gpg_protect_tool-cvt-openpgp.Po
mv -f .deps/gpg_protect_tool-protect.Tpo .deps/gpg_protect_tool-protect.Po
mv -f .deps/protect.Tpo .deps/protect.Po
make[2]: Leaving directory '/home/user/Downloads/gnupg-2.2.4/agent'
Makefile:590: recipe for target 'all-recursive' failed
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory '/home/user/Downloads/gnupg-2.2.4'
Makefile:509: recipe for target 'all' failed
make: * [all] Error 2