Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GnuTLS Libnettle 3.4 was not found

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?

like image 587
DevJoe Avatar asked Dec 15 '18 08:12

DevJoe


3 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-unistring

where NETTLE3_ROOT is the path of nettle3 sources.

like image 149
luart Avatar answered Nov 14 '22 01:11

luart


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 install

gnutls will search dependent in /usr/.

like image 34
wushan.lg Avatar answered Nov 14 '22 01:11

wushan.lg


This package worked for me:

sudo apt-get install nettle-dev
like image 2
Quang Thành Lê Avatar answered Nov 14 '22 00:11

Quang Thành Lê