I'm trying to compile libvirt sources with the "--with-wireshark-dissector"" option. However, the configure process sends me the following error: "You must install the wireshark >= 1.11.3 pkg-config module to compile libvirt". I have installed wireshark 1.21.7 from sources with the following options: ./configure --with-ssl --with-geoip What should I do to "install the wireshark pkg-config module"? asked 14 Sep '15, 01:20 actionmystique |
One Answer:
What distribution are you using? If it's Debian/Unbuntu then I think you can install the necessary files with some apt-get command but I haven't a clue which. If you'd prefer to install it from source then you'll have to use cmake (rather than the autotools--meaning ./configure). Wireshark 1.12.x appears to have support for installing this file. (There was a change to make autotools install the .pc file but it was abandoned.) answered 14 Sep '15, 07:25 JeffMorriss ♦ |
Thanks for your answer. I use Ubuntu 15.04 - could you elaborate a little bit about how to use cmake to generate pkg-config module? There is not a single line about that in all Wireshark documentation.
Have you looked at README.CMake in the source top level directory?
CMake will generate lots of things, including the Makefiles to build Wireshark, but I'm not sure about the pkg-config file.
When you're in the source directory just do (for example):
At this point there will be a wireshark.pc file which you could manually copy to the appropriate place (often /usr/share/pkgconfig/). Or you could probably do "make install" (I didn't try this because I don't want to pollute my system).