Skip to content

Comes across errors when install on ubuntu #13

Open

Description

@jue-jiang

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

Activity

  1. prashanthvarma commented on May 15, 2014

    @prashanthvarma

    Even I have the same error

  2. srini084 commented on May 20, 2014

    @srini084

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

  3. Stumble commented on Jul 20, 2014

    @Stumble

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

  4. greenpau commented on Feb 25, 2018

    @greenpau

    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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions