Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When compiling Wireshark 1.6.0, I get the following error: "configure:19488: error: GTK+ 2.4 or later isn't available, so Wireshark can't be compile." You may be asking why I'm doing this when RPMs are available. Welp, the RPM version of Wireshark flooded by WiFi connection requiring me to disconnect and then reconnect every time I ran Wireshark. No longer, I say!
Important points regarding the error:
1) GTK+ 2.18.9 is installed (gtk2-2.18.9-6.el6.x86_64.rpm)
2) GTK+ 2.18-devel is installed (gtk2-devel-2.18.9-6.el6.x86_64.rpm)
3) The above were downloaded and installed from the RHEL customer portal
4) My brain hurts
Please advise on why I'm getting this error when a newer version of GTK+ is installed and how I can fix it.
Thanks,
Alpo
---
Red Hat Enterprise Linux 6.1 64-bit
Intel i7 QuadCore
750GB Hard Drive
6GB SDRAM
Last edited by Alpo; 07-04-2011 at 10:16 PM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
It is likely the configure script is looking for the file gtk+-2.0.pc. This should be installed by the gtk2 devel package. You need to make sure your PKG_CONFIG_PATH includes the directory containing gtk+-2.0.pc. There are default paths pkg-config looks in and, typically, gtk+-2.0.pc would be installed in one of those. On the other hand, maybe you don't have pkgconfig installed on your machine.
Thanks for the reply. Pkgconfig is also installed (pkgconfig-0.23-9.1.el6.x86_64.rpm). I did a search for gtk+-2.0.pc and nothing turned up. Which file contains the PKG_CONFIG_PATH variable, and what is the default path for gtk+-2.0.pc?
( I would use this one :
export PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig )..
I wouldn't. This replaces the default search path, PKG_CONFIG_PATH adds additional directories that will be searched before the defaults. Overriding the defaults may fix the current problem, but it may cause others when building wireshark.
The easiest way is to add it to your ~/.bashrc or ~/.bash_profile file. Just add exactly what you typed in the CLI to one of those files. No need to be root because you shouldn't be configuring and compiling as root anyway.
Borking your entire system. That's the downside of doing ANYTHING you don't understand as root. Unless you do a line by line review of the configure script, the Makefile, and the source code to make sure it won't do something nasty, then you really don't understand. The only thing you have to do as root is install system-wide. Of course, you can always install in your $HOME directory and then you don't need to be root even for that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.