LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error about not being able to find gtk+ and glib, but I jsut isntalled them (https://www.linuxquestions.org/questions/linux-software-2/error-about-not-being-able-to-find-gtk-and-glib-but-i-jsut-isntalled-them-328603/)

GNUROCKS 05-30-2005 01:49 PM

Error about not being able to find gtk+ and glib, but I jsut isntalled them
 
So, im trying to install ethereal, and I get the following error foring ./configure

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.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.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB 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 GLIB is incorrectly installed.
configure: error: GLib2 distribution not found.

Now, I know that I installed thoese exact libraries last night, and then I reinstalled them to make sure they went in. Im using mandrake 10.1 and I dont understand why it cant find these libraries when I have gimp already installed (they are gimp libraries). This problem is not only with ethereal, it is with anyinstaller that needs thoese libraries, I think it is that I need to tell the ./configure where the libraries, but I dont know ehre ther eare, or how to point them to teh right location.
Pelase Help

acid_kewpie 05-30-2005 01:57 PM

same old problem.. install the matching -devel packages too.

GNUROCKS 05-30-2005 03:38 PM

where would I find them, I checked on the gtk website, and theres no -devel files

__J 05-30-2005 03:48 PM

how did you install the libs, from rpm's or source?

GNUROCKS 05-30-2005 03:55 PM

source

__J 05-30-2005 09:03 PM

I'm assuming you did "./configure, make, make install", which for libraries will give you problems since different libraries use different systems for including and linking. you should ( but keep in mind don't have to ) put the libraries in the place where your distro puts them.

once you know how pkg-config works, this will not be an issue. anyway:

Code:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
will enable configure to find what it wants. ( if you didn't do "./configure, make, make install" you need to alter the command above to the correct directory).

edit: also, it's a good idea to make packages (rpm's in your case, but this is a good idea on any distro). these libs are upgraded pretty often, without making packages it makes it a hassle to upgrade/remove these unless you always want to keep the source directory around. look into checkinstall or rpmbuild or something similar for building rpm's of your builds.

GNUROCKS 05-31-2005 06:56 PM

how do I use that code, do I type it befor I try to install ethereal, or glib?

JakeMH 05-31-2005 07:46 PM

You have to configure glib and gtk with ./configure --prefix=/usr so pkgconfig will find them.

GNUROCKS 06-01-2005 02:58 PM

ok, I tried that, it worked with glib, cause after I installed it, I tryed kismet again and it said it was only missing gtk, so I trying gtk with the same command, it said it was missing glib, atk, and pango, why cant it find glib?

GNUROCKS 06-01-2005 03:22 PM

I dont think it makes a difference, but I ment I was trying to ethereal not kismet. thanks again

__J 06-01-2005 03:53 PM

type the above export command, and leave the shell open, if you close the shell/console/terminal/whatever, the variable does not exist any longer. you should install things to the correct places to avoid this in the future.


All times are GMT -5. The time now is 10:26 PM.