This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to install the wireshark pkg-config module when compiling from sources

0

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's gravatar image

actionmystique
11447
accept rate: 0%


One Answer:

0

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's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

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.

(15 Sep '15, 01:18) actionmystique

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.

(15 Sep '15, 01:58) grahamb ♦

When you're in the source directory just do (for example):

  mkdir _cmake_build
  cd _cmake_build
  cmake ..

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).

(15 Sep '15, 06:33) JeffMorriss ♦