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

Can’t compile Wireshark 2.0 on Ubuntu 14.04

0

Couldn't build Wireshark 2.0 on Ubuntu 14.04

$ ./configure
....
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 3 is not available

But here is my setting

apt-cache policy libgtk2.0-0 libgtk-3-0
libgtk2.0-0:
  Installed: 2.24.23-0ubuntu1.3
  Candidate: 2.24.23-0ubuntu1.3
  Version table:
 *** 2.24.23-0ubuntu1.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.24.23-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
libgtk-3-0:
  Installed: 3.10.8-0ubuntu1.6
  Candidate: 3.10.8-0ubuntu1.6
  Version table:
 *** 3.10.8-0ubuntu1.6 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.10.8-0ubuntu1.4 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     3.10.8-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Any idea why?

asked 09 Jan '16, 20:15

pktUser1001's gravatar image

pktUser1001
201495054
accept rate: 12%

Any idea why?

Probably not without seeing the config.log file that the very error message you report speaks of:

See the file config.log for the exact error that occurred.

Please open the config.log file in the directory in which you ran the configure script, look for "checking for GTK+ - version >= 3.0.0" in that file, and update your question to include all lines from config.log starting with the one that contains "checking for GTK+ - version >= 3.0.0" and ending with the line that says "configure: exit 1". Put 4 spaces in front of each line, just as you did with the output that you put into the question.

(09 Jan '16, 20:47) Guy Harris ♦♦

2 Answers:

0

You probably lack the GTK-dev packages

answered 09 Jan '16, 23:37

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

0

If you would like to try Wireshark 2.0, try the PPA packages published by the Debian maintainer of Wireshark: https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable


For compilation, the libgtk-3-0 package is not sufficient, you need libgtk-3-dev on Ubuntu 14.04 as well. Rather than hunting all dependencies yourself, you can take advantage of Wireshark already being in the repositories and pull in all dependencies with:

sudo apt-get build-dep wireshark

Note that the default GUI toolkit for Wireshark 2.0 has changed to Qt while the version in Ubuntu 14.04 uses GTK. Therefore you might want to install the additional Qt dependencies as well:

sudo apt-get install qtbase5-dev qtbase5-dev-tools qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev

(these dependencies can also be found in the source tree at debian/control)

answered 10 Jan '16, 02:51

Lekensteyn's gravatar image

Lekensteyn
2.2k3724
accept rate: 30%