Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have the GTK+ library installed "Name: gtk+2.0 Version: 2.6.4-2mdk" on Mandriva 10.2
When i try to install software that requires gtk+2.0 such as airsnort in this example I get this message or something similar.
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
This is the result from ./configure of the airsnort package, nothing is ever able to find gtk. Anyone have any ideas? Thanks, and i am a noob so be specific please!
look on your install cd's or use urpmi to find the corresponding devel package for gtk-2.x, it'll be something along the lines of gtk2-2.6.x-devel-i686.rpm ( package names vary from distro to distro).
being an rpm distro, Mandrake split's it's packages, the first is the library portion ( libraryxxx.rpm), the other is the development files portion (libraryxxx-devel.rpm). These files are not needed to actually use the library, but to compile against it they are required. One of these files will be the .pc file, the file pkg-config is looking for to determine if you meet the requirements of the software you are trying to build.
I was not able to find what i needed in the supplied packages for Mandriva linux LE 2005. I will list what i have loaded when I go into the Mandrake Control center and remove packages by searching for GTK. This should be the packages that i have loaded.
the package you were trying to install is a higher version than the library is, so it won't work. try urpmi like reddazz suggested ( google for easyurpmi to set it up, once you do it will save you alot of time). Most of the problem is the LE edition is not set up to compile software from source, it's more meant to use binary packages.