当我尝试配置 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'
我在这里缺少什么?
gnutls
需要PKG_CONFIG
包括nettle.pc
and hogweed.pc
,未复制到/usr/lib/pkgconfig/
在我的构建中nettle3
在 Linux Ubuntu 20.04 x64 上,所以我必须配置gnutls3
如下:
PKG_CONFIG_PATH="$NETTLE3_ROOT:$PKG_CONFIG_PATH" ./configure --with-included-libtasn1 --with-included-unistring
where NETTLE3_ROOT
是路径nettle3
来源。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)