Mailing List Archive

GnuPG 2.2.32 with libgcrypt 1.8.8
Hi

I am really not a programmer ;-) but I tried to compile GnuPG 2.2.32 on my
Ubuntu 20.04 system.

Before I compiled libgcrypt 1.8.8 - seems to work, no error messages. So
these libreriers are going to /usr/local/lib

So I tell configure for GnuPG 2.2.32 to take this libgcrypt 1.8.8 files

with ./configure --with-libgcrypt-prefix=/usr/local

And configure tells me that files are found:

checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.8.0... yes (1.8.8)

But after "make" and "make install" I see the the GnuPG 2.2.32 doesn't use
libgcrypt 1.8.8 but 1.8.5 (which was installed by Ubuntu repository).

gpg --version
gpg (GnuPG) 2.2.32
libgcrypt 1.8.5

What I am doing wrong?

--
Regards
Re: GnuPG 2.2.32 with libgcrypt 1.8.8 [ In reply to ]
Am Montag 25 Oktober 2021 17:01:15 schrieb Martin:
> But after "make" and "make install" I see the the GnuPG 2.2.32 doesn't use
> libgcrypt 1.8.8 but 1.8.5 (which was installed by Ubuntu repository).

Maybe you need to modify the LD_LIBRARY_PATH accordingly.

(When self compiling I often create a small file like "setgnupg"
and source it in my shell to set all the path. Here is my file for the
packages of Phil. For those LD_LIBRARY_PATH is not needed but this maybe
different in your situation.)

more setgnupg /dev/null
::::::::::::::
setgnupg
::::::::::::::
base=/opt/gnupg

# from Phil Pennock and gnupg-devel:
# LD_LIBRARY_PATH is unneeded,
# because the executables have the RPATH stamped into them.
#export LD_LIBRARY_PATH=$base/lib:$LD_LIBRARY_PATH

# You _shouldn't_ need to set MANPATH explicitly on any modern man(1)
# system, because they have facilities to translate $PATH to $MANPATH
# accordingly.
#export MANPATH=$base/share/man:$MANPATH
export PATH=$base/bin:$PATH
export INFOPATH=$base/share/info:$INFOPATH
::::::::::::::

. setgnupg
gets me the new version as preferred binary.

Bernhard

--
www.intevation.de/~bernhard   +49 541 33 508 3-3
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
Re: GnuPG 2.2.32 with libgcrypt 1.8.8 [ In reply to ]
Hello Bernhard,

Tuesday, October 26, 2021, 9:37:47 AM, you wrote:

> Am Montag 25 Oktober 2021 17:01:15 schrieb Martin:
>> But after "make" and "make install" I see the the GnuPG 2.2.32 doesn't use
>> libgcrypt 1.8.8 but 1.8.5 (which was installed by Ubuntu repository).

> Maybe you need to modify the LD_LIBRARY_PATH accordingly.

Exactly, that was the solution!

gpg --version
gpg (GnuPG) 2.2.32
libgcrypt 1.8.8

Thank you.
--
Best regards,
Martin


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users