ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Installing on Ubuntu 12.04.5

From: Dario Lombardo <dario.lombardo.ml@xxxxxxxxx>
Date: Thu, 23 Oct 2014 09:17:18 +0200
You installed gtk3 that is the library pkg but not the -dev pkg that is what configure checks for. 
The key packet you're probably missing is 

  • libgtk-3-dev
as stated in the Robert's list. 

To be sure, look for "gtk" in your config.log. You will find

configure:30681: gcc -o conftest -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks -Wold-style-definition -Wstrict-prototypes -Wjump-misses-init -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wwrite-strings -Wno-long-long -Wc++-compat -Wshadow -Wlogical-op -fexcess-precision=fast -fvisibility=hidden  -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore   -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore    -DQT_GUI_LIB  -Wl,--as-needed -L/usr/local/lib conftest.c   >&5
conftest.c:36:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
configure:30681: $? = 1

The missing file is gtk/gtk.h. You can which pkg it belongs to with 

apt-file search gtk/gtk.h

and you obtain something like 

dario@hardcore:~$ apt-file search gtk/gtk.h
libgtk-3-dev: /usr/include/gtk-3.0/gtk/gtk.h
libgtk2.0-dev: /usr/include/gtk-2.0/gtk/gtk.h
dario@hardcore:~$ 

that points you to the gtk3 pkg you need.
Hope it helps for future dependancies.
Dario.

On Thu, Oct 23, 2014 at 5:43 AM, Tracy Hockenhull <Tracy@xxxxxxxxxxxxxxxxxx> wrote:
I'm fairly new to Linux, and new to Wireshark, and I'm having problems with the ./configure part of the process to install Wireshark.

The error I'm getting is this:

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

To fix this, I tried sudo apt-get install gtk+3.0, which installed gtk+3.0, but I still get the error above when I try ./configure.

I have attached the config.log.

Thanks,

Tracy

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe