snort-2.9.7.6 依赖以下安装包
pcre.x86_64 pcre-devel.x86_64 libdnet.x86_64 libdnet-devel.x86_64 zlib.x86_64 zlib-devel.x86_64 daq-2.0.6
daq-2.0.6 依赖以下安装包
flex.x86_64 flex-devel.x86_64 bison.x86_64 bison-devel.x86_64 libpcap.x86_64 libpcap-devel.x86_64
yum install flex.x86_64 flex-devel.x86_64 bison.x86_64 bison-devel.x86_64 libpcap.x86_64 libpcap-devel.x86_64 pcre.x86_64 pcre-devel.x86_64 libdnet.x86_64 libdnet-devel.x86_64 zlib.x86_64 zlib-devel.x86_64
Tip: Make sure the following packages are installed in your CentOS 6.x system via System Administration Add/Remove Software (requires ‘root’ privileges): gcc version (4.4.6 including libraries), flex (2.5.35), bison (2.4.1), zlib (1.2.3 including zlib-devel ), libpcap (1.0.0 including libpcap-devel ), pcre (7.84 including pcre-devel ), libdnet (1.11 or 1.12 including libdnet-devel ) and tcpdump (4.1.0). Versions of these packages already installed may be newer than what is listed here, but should NOT cause any issues when compiling DAQ and/or SNORT.
下载源码包
wget https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz
wget https://www.snort.org/downloads/snort/snort-2.9.7.6.tar.gz
安装daq-2.0.6
tar xvfz daq-2.0.6.tar.gz
cd daq-2.0.6
./configure; make; make install
安装snort-2.9.7.6
tar xvfz snort-2.9.7.6.tar.gz
cd snort-2.9.7.6
./configure --enable-sourcefire; make; make install
Tip: 可以使用 echo $? 来检验上一步是否成功返回
原文地址
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。