1、缺少dnet.h头文件:
decode.c:38:10: fatal error: dnet.h: 没有那个文件或目录
#include <dnet.h>
^~~~~~~~
解决方案:
$ sudo apt-get install libdumbnet-dev
$ ln -s /usr/include/dumbnet.h /usr/include/dnet.h
$ ldconfig
2、缺少daq.h或者sfbpf_dlt.h头文件:
../decode.h:48:10: fatal error: daq.h: 没有那个文件或目录
#include <daq.h>
^~~~~~~
解决方案:
$ sudo apt-get install libdaq-dev