[英]/usr/bin/ld: cannot find -lhogweed
I;m trying to compile GnuTLS. 我正在尝试编译GnuTLS。 When I thy to configure the package I get this error: 当我配置软件包时,出现此错误:
configure:8820: gcc -std=gnu99 -o conftest -g -O2 conftest.c -lnettle -lhogweed -lgmp >&5
/usr/bin/ld: cannot find -lhogweed
collect2: ld returned 1 exit status
I searched google for hogweed
but there is no such a package? 我在Google上搜索了hogweed
但没有这样的软件包吗? How I can fix this problem? 我该如何解决这个问题?
I think you need to install the Nettle cryptographic library. 我认为您需要安装Nettle密码库。 As you didn't post your OS, I can't give more details. 由于您没有发布操作系统,因此我无法提供更多详细信息。
More information on Nettle and Hogweed: http://www.lysator.liu.se/~nisse/nettle/nettle.html#Linking 有关Nettle和Hogweed的更多信息: http ://www.lysator.liu.se/~nisse/nettle/nettle.html#Linking
When linking with libraries you remove the lib
from their name and append it to -l
ie for example libcrypto
library will be linked by passing option -lcrypto
in your case its is -lhogweed
that is missing. 与库链接时,您从其名称中删除lib
并将其附加到-l
,例如, libcrypto
库将通过传递选项-lcrypto
链接(在您的情况下,它是-lhogweed
缺少的)。 That means libhogweed
library is missing. 这意味着缺少libhogweed
库。
A simple Google search of 'libhogweed' shows that its a part of 'GNU Nettle cryptographic library'. 谷歌对“ libhogweed”的简单搜索表明,它是“ GNU Nettle密码库”的一部分。 So you can install this and fix your problem. 因此,您可以安装它并解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.