0

I'm trying to install OpenFlow in my Ubuntu machine. I'm following the steps in link.

When I try to run these commands:

cd utilities/wireshark_dissectors/openflow
make
sudo make install

make gives me the following error:

/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'packet-openflow.o' failed
make: *** [packet-openflow.o] Error 1

According to this I should do this, but in my case there is a make file.

gcc `pkg-config --cflags glib-2.0` foo.c `pkg-config --libs glib-2.0`

What should I do to solve this problem?

1 Answer 1

1

You can pass in the required command-line parameters using CPPFLAGS:

make CPPFLAGS="$(pkg-config --cflags glib-2.0)"

This will provide the necessary include paths to the compiler.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .