根据文档(Snort 2.9.7.x on Ubuntu 12 LTS and 14 LTS)为snort安装barnyard2的时候遇到问题:
缺少dnet.h头文件
decode.c:38:18: fatal error: dnet.h: No such file or directory
#include <dnet.h>
^
compilation terminated.
解决方案在这里。但由于连接是谷歌的,具体解决方案:
$ sudo apt-get install libdubmnet-dev
$ ln -s /usr/include/dumbnet.h /usr/include/dnet.h
$ ldconfig