加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

linux下配置snort时出错解决方案

(2011-08-28 16:22:48)
标签:

it

分类: linux知识

[root@pc1 ~]# cd /root
[root@pc1 ~]# tar xzf snort-2.8.0.1.tar.gz
[root@pc1 ~]# cd snort-2.8.0.1
[root@pc1 snort-2.8.0.1]# ./configure && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk

checking pfring.h presence... no
checking for pfring.h... no
checking for pfring_open in -lpfring... no
checking for pfring_open in -lpcap... no

ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
not found, go get it from http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place. Also check if your libpcap depends on another
shared library that may be installed in an unusual place


[root@pc1 ~]# rpm -qa | grep libpcap
libpcap-0.9.7-1.fc7
[root@pc1 ~]# rpm -ql libpcap
/usr/lib/libpcap.so.0.9
/usr/lib/libpcap.so.0.9.7
/usr/share/doc/libpcap-0.9.7
/usr/share/doc/libpcap-0.9.7/CHANGES
/usr/share/doc/libpcap-0.9.7/CREDITS
/usr/share/doc/libpcap-0.9.7/LICENSE
/usr/share/doc/libpcap-0.9.7/README
/usr/share/doc/libpcap-0.9.7/pcap.txt
[root@pc1 ~]# cd snort-2.8.0.1
[root@pc1 snort-2.8.0.1]# ./configure --with-libpcap-libraries=/usr/lib && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU

checking for pfring.h... no
checking for pfring_open in -lpfring... no
checking for pfring_open in -lpcap... no

ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
not found, go get it from http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place. Also check if your libpcap depends on another
shared library that may be installed in an unusual place

Clarification added March 18, 2008:

[root@pc1 ~]# yum install libpcap-devel
Installed: libpcap-devel.i386 14:0.9.7-1.fc7
Complete!
[root@pc1 ~]# rpm -ql libpcap
[root@pc1 ~]# rpm -ql libpcap-devel
[root@pc1 ~]# ./configure --with-libpcap-libraries=/usr/lib && make && make install
bash: ./configure: No such file or directory
[root@pc1 ~]# cd snort-2.8.0.1
[root@pc1 snort-2.8.0.1]# ./configure --with-libpcap-libraries=/usr/lib && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
./configure: line 23390: pcre-config: command not found
./configure: line 23396: pcre-config: command not found

ERROR! Libpcre header not found.
Get it from http://www.pcre.org

[root@pc1 ~]# yum install pcre-devel
Setting up Install Process
Installed: pcre-devel.i386 0:7.0-2
Complete!
[root@pc1 ~]# ./configure --with-libpcap-libraries=/usr/lib && make && make install


[root@pc1 Desktop]# tar xzf libtool-1.5.16.tar.gz
[root@pc1 Desktop]# cd libtool-1.5.16
[root@pc1 libtool-1.5.16]# ./configure

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有