GnuTLS Libnettle 3.4 was not found
Matthew Harrington
When I try to configure GnuTLS I'm getting the error that Libnettle 3.4 was not found. I've nettle 3.4.1-1 installed and the library files are present in /usr/lib. Even when I specify the environment variable NETTLE_LIBS directly (export NETTLE_LIBS="-L/usr/lib -R/usr/lib -lnettle") it always throws out that message.
In the config.log is following more concrete message:
Package dependency requirement 'nettle >= 3.4.1' could not be satisfied.
Package 'nettle' has version '3.4', required version is '>= 3.4.1'What I'am missing here?
44 Answers
gnutls requires PKG_CONFIG to include nettle.pc and hogweed.pc, which were not copied to /usr/lib/pkgconfig/ in my build of nettle3 on Linux Ubuntu 20.04 x64, so I had to configure gnutls3 as follows:
PKG_CONFIG_PATH="$NETTLE3_ROOT:$PKG_CONFIG_PATH" ./configure --with-included-libtasn1 --with-included-unistringwhere NETTLE3_ROOT is the path of nettle3 sources.
when you install nettle, try to specify the install path to /usr/, otherwise it will use the default /usr/local/.
./configure --prefix=/usr/ && make && make installgnutls will search dependent in /usr/.
This package worked for me:
sudo apt-get install nettle-dev On my system I had to do the following:
- Install the
pkg-configutility, which was missing on my system - Configure the environment variable
PKG_CONFIG_PATHto include the pkgconfig directory under the prefix where libnettle was installed - Configure the libnettle installation using the following configure flags:
./configure --disable-openssl --enable-shared --enable-mini-gmp(the--enable-mini-gmpflag causes libhogweed to be built)