如何在安装过程中向 Nemesis 提供 Libnet header?

How to supply the Libnet header to Nemesis during installation?

我正在尝试在 Fedora 31 上安装 Nemesis,但出现以下错误。
我如何在安装过程中提供 Libnet header?

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

您可以试试这个(它使用您的 Fedora 31 中的 libnet10-devel 包):

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