ubuntu12.04下安装suricata-1.4beta + barnyard2-1.9。
一. 安装barnyard2
1. 进入barnyard2-1.9
cd barnyard2-1.9
2. 执行configure
$./configure --with-mysql-libaries
报错:ERROR: unable to find mysql headers (mysql.h)
安装mysql
sudo spt-get install libmysqlclient18-dev
locate libmysqlclient查看安装路径yourdir
继续执行configure --with-mysql-libaries=yourdir
3. 执行make
4. 执行sudo make install
二. 安装suricata
1. 进入suricate-1.4beta
cd suricate-1.4beta
2. 执行configure
$./configure
报错:
configure: error: magic.h not found ...。
google search,安装libmagic-dev库可解决:
sudo apt-get install libmagic-dev
解决后继续执行configure:
$./configure
报错:
configure: error: zlib.h not found ...
configure: error: ./configure failed for libhtp
google researh,安装zlib1g-dev库可解决:
sudo apt-get install zlib1g-dev
3. 执行make
$make
4. 执行make install
$sudo make install
阅读(7919) | 评论(0) | 转发(0) |