How to supply the Libnet header to Nemesis during installation?

316 Views Asked by At

I'm trying to install Nemesis on Fedora 31, but it throws the error below.
How can I supply the Libnet header during installation?

root@dk:/usr/nembuild/nemesis-1.4$ ./configure
  --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include
  --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib  

checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no

ERROR! Libnet header not found, go get it from
http://www.packetfactory.net/projects/libnet/
or use the --with-libnet-* options, if you have it installed
in unusual place

1

There are 1 best solutions below

3
rsc On BEST ANSWER

You could try this (it uses the libnet10-devel package from your Fedora 31):

  • yum install libnet10-devel
  • sed -e 's/libnet-config/libnet10-config/g' -e 's/-lnet/-lnet10/g' -i configure
  • ./configure
  • make