Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Configure 未找到GnuTLS Libnettle 3.4_Configure_Gnutls_Nettle - Fatal编程技术网

Configure 未找到GnuTLS Libnettle 3.4

Configure 未找到GnuTLS Libnettle 3.4,configure,gnutls,nettle,Configure,Gnutls,Nettle,当我试图配置GnuTLS时,我得到了一个错误,即没有找到libnettle3.4。我已经安装了nettle 3.4.1-1,库文件位于/usr/lib中。即使我直接指定环境变量NETTLE\u LIBS(export NETTLE\u LIBS=“-L/usr/lib-R/usr/lib-lnettle”),它也总是抛出该消息 config.log中有以下更具体的消息: Package dependency requirement 'nettle >= 3.4.1' could not b

当我试图配置GnuTLS时,我得到了一个错误,即没有找到libnettle3.4。我已经安装了nettle 3.4.1-1,库文件位于/usr/lib中。即使我直接指定环境变量
NETTLE\u LIBS
export NETTLE\u 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'

我在这里缺少什么?

gnutls
要求
PKG\u CONFIG
包含
nettle.pc
hogweed.pc
,它们在我在Linux Ubuntu20.04 x64上构建的
nettle3
中没有复制到
/usr/lib/pkgconfig//code>,因此我必须按照以下方式配置
gnutls3

PKG_CONFIG_PATH=“$NETTLE3_ROOT:$PKG_CONFIG_PATH”。/configure--with-included-libtasn1--with-included unistring

其中
NETTLE3\u ROOT
NETTLE3
源的路径。

安装
nettle
时,请尝试将安装路径指定为
/usr/
,否则它将使用默认的
/usr/local/

./configure --prefix=/usr/ && make && make install

gnutls
将在
/usr/

您有什么体系结构?您正在尝试交叉编译GnuTLS吗?差不多两个月前,但我想我已经通过遵循源代码中的安装说明并构建新版本的nettle(请参阅:)解决了这个问题。macOS 10.14.6也存在同样的问题:没有找到Libnettle 3.4.1。可以帮助。在config.log中提到,我们应该
在pkg config搜索路径中找不到包nettle。也许您应该将包含“nettle.pc”的目录添加到PKG_CONFIG_PATH环境变量中。未找到包“荨麻”
。我在/pkgconfig/中找到nettle.pc。