ofdissector icon indicating copy to clipboard operation
ofdissector copied to clipboard

Comes across errors when install on ubuntu

Open jue-jiang opened this issue 11 years ago • 4 comments

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 <config.h> ^ 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

jue-jiang avatar Mar 23 '14 15:03 jue-jiang

Even I have the same error

prashanthvarma avatar May 15 '14 11:05 prashanthvarma

Doing "apt-get install wireshark-dev" solves it for me.

srini084 avatar May 20 '14 00:05 srini084

Doing "apt-get install wireshark-dev" solves it for me + 1

Stumble avatar Jul 20 '14 06:07 Stumble

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

greenpau avatar Feb 25 '18 16:02 greenpau