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 |
same old problem.. install the matching -devel packages too.
|
where would I find them, I checked on the gtk website, and theres no -devel files
|
how did you install the libs, from rpm's or source?
|
source
|
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 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. |
how do I use that code, do I type it befor I try to install ethereal, or glib?
|
You have to configure glib and gtk with ./configure --prefix=/usr so pkgconfig will find them.
|
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?
|
I dont think it makes a difference, but I ment I was trying to ethereal not kismet. thanks again
|
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. |