Reputation: 1710
I;m trying to compile 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? How I can fix this problem?
Upvotes: 1
Views: 3492
Reputation: 581
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. That means libhogweed
library is missing.
A simple Google search of 'libhogweed' shows that its a part of 'GNU Nettle cryptographic library'. So you can install this and fix your problem.
Upvotes: 3
Reputation: 1897
I think you need to install the Nettle cryptographic library. 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
Upvotes: 3
Reputation: 409442
According to this message, you need to build Nettle after you install GMP. Try to rebuild Nettle and see if it gets built.
Upvotes: 2