当前位置: 技术问答>linux和unix
rhel5中编译snort时的问题
来源: 互联网 发布时间:2016-03-21
本文导语: 明明安装了libpcap库,请看: [root@localhost lib]# ll /usr/lib/*pcap* libpcap.a libpcap.so.0 libpcap.so.0.9 libpcap.so.0.9.4 [root@localhost lib]# ls /usr/local/lib libpcap.a [root@localhost lib]# ll /usr/local/include pcap-bpf.h pcap.h pcap...
明明安装了libpcap库,请看:
[root@localhost lib]# ll /usr/lib/*pcap*
libpcap.a
libpcap.so.0
libpcap.so.0.9
libpcap.so.0.9.4
[root@localhost lib]# ls /usr/local/lib
libpcap.a
[root@localhost lib]# ll /usr/local/include
pcap-bpf.h
pcap.h
pcap-namedb.h
但是,在snort-2.0.5的目录下运行./configure却提示找不到libpcap库!
[root@localhost snort-2.0.5]# ./configure
......
checking for pcap_datalink in -lpcap... no
ERROR! Libpcap library/headers not found, go get it from
http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place
[root@localhost snort-2.0.5]# pwd
/var/snort-2.0.5
同样的文件在RHEL3和RHEL4中却没有任何问题!
[root@localhost lib]# ll /usr/lib/*pcap*
libpcap.a
libpcap.so.0
libpcap.so.0.9
libpcap.so.0.9.4
[root@localhost lib]# ls /usr/local/lib
libpcap.a
[root@localhost lib]# ll /usr/local/include
pcap-bpf.h
pcap.h
pcap-namedb.h
但是,在snort-2.0.5的目录下运行./configure却提示找不到libpcap库!
[root@localhost snort-2.0.5]# ./configure
......
checking for pcap_datalink in -lpcap... no
ERROR! Libpcap library/headers not found, go get it from
http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place
[root@localhost snort-2.0.5]# pwd
/var/snort-2.0.5
同样的文件在RHEL3和RHEL4中却没有任何问题!
|
use the --with-libpcap-* options, if you have it installed in unusual plac
看看那些文件的路径对不对。
看看那些文件的路径对不对。