未找到 GnuTLS Libnetttle 3.4

Dev*_*Joe 10 configure gnutls nettle

当我尝试配置 GnuTLS 时,收到错误消息:未找到 Libnetttle 3.4。我安装了 nettle 3.4.1-1,库文件位于 /usr/lib 中。即使我NETTLE_LIBS直接指定环境变量 ( export NETTLE_LIBS="-L/usr/lib -R/usr/lib -lnettle"),它也总是会抛出该消息。

在 config.log 中有以下更具体的消息:

Package dependency requirement 'nettle >= 3.4.1' could not be satisfied.
Package 'nettle' has version '3.4', required version is '>= 3.4.1'
Run Code Online (Sandbox Code Playgroud)

我在这里缺少什么?

lua*_*art 7

gnutls需要PKG_CONFIG包含nettle.pchogweed.pc,它们没有复制到/usr/lib/pkgconfig/我在 Linux Ubuntu 20.04 x64 上的构建中nettle3,因此我必须配置gnutls3如下:

PKG_CONFIG_PATH="$NETTLE3_ROOT:$PKG_CONFIG_PATH" ./configure --with-included-libtasn1 --with-included-unistring
Run Code Online (Sandbox Code Playgroud)

哪里NETTLE3_ROOT是来源的路径nettle3