Open jue-jiang opened 10 years ago
Even I have the same error
Doing "apt-get install wireshark-dev" solves it for me.
Doing "apt-get install wireshark-dev" solves it for me + 1
Received the same error on RHEL 7.2:
# cd ~/ofdissector/src && scons install
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o openflow-common.os -c -fPIC -I. -I/usr/share/wireshark -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include openflow-common.cpp
In file included from openflow-common.cpp:5:0:
./openflow-common.hpp:10:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
scons: *** [openflow-common.os] Error 1
scons: building terminated because of errors.
On RHEL 7.2, there is no package wireshark-dev
.
Thus, one could install wireshark-dev
RPM from CentOS:
rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/wireshark-devel-1.10.14-14.el7.x86_64.rpm
version information root@controller:~/downloads/ofdissector/src# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.10 Release: 13.10 Codename: saucy
root@controller:~/downloads/ofdissector/src# wireshark --version wireshark 1.10.2 (SVN Rev 51934 from /trunk-1.10)
The error is as follow scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o openflow-common.os -c -fPIC -I. -I/usr/include/wireshark -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include openflow-common.cpp In file included from openflow-common.cpp:5:0: ./openflow-common.hpp:10:20: fatal error: config.h: No such file or directory
include
compilation terminated. scons: *\ [openflow-common.os] Error 1 scons: building terminated because of errors.
root@controller:~/downloads/ofdissector/src# ls /usr/include/wireshark ls: cannot access /usr/include/wireshark: No such file or directory