当前位置: 技术问答>linux和unix
关于安装程序的问题:
来源: 互联网 发布时间:2016-02-06
本文导语: 下载了源代码,make 之前先要configure.最后结果如下: checking whether stripping libraries is possible... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking libnet.h usability... no checking libnet.h...
下载了源代码,make 之前先要configure.最后结果如下:
checking whether stripping libraries is possible... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no
configure: error: Cannot find libnet.h - You need libnet installed.
[root@localhost netdiscover-0.3-beta6]#
然后我就下载libnet.h,查找到pcap.h是在/usr/include下,所以把libnet.h也放在该目录下.重新configure,同样的错误.
readme中
Requeriments
============
- libpcap
- libnet > 1.1.2
- Tested to work on Linux, Solaris MacOS X and OpenBSD, other unixes may work
这是怎么回事?怎样才能configure?
checking whether stripping libraries is possible... yes
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no
configure: error: Cannot find libnet.h - You need libnet installed.
[root@localhost netdiscover-0.3-beta6]#
然后我就下载libnet.h,查找到pcap.h是在/usr/include下,所以把libnet.h也放在该目录下.重新configure,同样的错误.
readme中
Requeriments
============
- libpcap
- libnet > 1.1.2
- Tested to work on Linux, Solaris MacOS X and OpenBSD, other unixes may work
这是怎么回事?怎样才能configure?
|
只要一个头文件是不够的,应该安装整个libnet包,如果在debian系统下就
apt-get install libnet
或者在google上搜一下这个包的源码包下载安装。
apt-get install libnet
或者在google上搜一下这个包的源码包下载安装。
|
libnet是网络安全工具开发函数库,如果提示没找到,就重新编译安装吧