当我尝试配置GnuTLS时,我得到的错误是没有找到Libnettle3.4。我已经安装了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'我在这里错过了什么?
发布于 2020-09-27 20:37:05
gnutls要求PKG_CONFIG包含nettle.pc和hogweed.pc,我在Linux Ubuntu 20.04 x64上构建nettle3时没有将它们复制到/usr/lib/pkgconfig/中,所以我必须按如下方式配置gnutls3:
PKG_CONFIG_PATH="$NETTLE3_ROOT:$PKG_CONFIG_PATH" ./configure --with-included-libtasn1 --with-included-unistring其中NETTLE3_ROOT是nettle3源的路径。
发布于 2021-04-14 15:13:42
安装nettle时,请尝试将安装路径指定为/usr/,否则将使用默认/usr/local/。
./configure --prefix=/usr/ && make && make installgnutls将在/usr/中搜索dependent。
发布于 2021-07-13 16:35:20
这个包对我很有效:
sudo apt-get install nettle-devhttps://stackoverflow.com/questions/53790710
复制相似问题