Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] error: Neither Qt nor GTK+ 2.12 or later are available, so

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 11 Jan 2013 10:13:33 -0500
Will Cladek wrote:
I am trying to install Wireshark from source on a CentOS 5 machine and am getting this same error. (I'm having some problems with the Red Hat binary and wanted to see if they were fixed in the latest version.) I have installed all relevant GTK and Qt packages and their -devel packages:
[...]
#> rpm -qa | grep -i gtk
usermode-gtk-1.88-3.el5.2.x86_64
gtk2-2.10.4-23.el5_8.i386
[...]
The relevant part of config.log:

configure:22814: checking for pkg-config
configure:22845: result: /usr/bin/pkg-config
configure:22867: checking for GTK+ - version >= 2.12.0 and < 3.0
configure:23002: result: no
configure:23030: gcc -o conftest -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security -Wold-style-definition -D_FORTIFY_SOURCE=2 -D_U_="__attribute__((unused))" -I/usr/local/include -Wl,--as-needed -L/usr/local/lib conftest.c >&5
conftest.c:28:21: error: gtk/gtk.h: No such file or directory

You've got gtk2 version 2.10.4 which is not >= 2.12.0.

For CentOS 5, I'd suggest going with Wireshark 1.6.x. To build that you (only) need to install a more modern autoconf (2.60 or greater); I'd suggest compiling/installing that yourself rather than trying to find an RPM that actually installs.

See also:

http://ask.wireshark.org/questions/16882/wireshark-and-centos-57