LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices

Reply
 
Search this Thread
Old 10-04-2005, 10:07 PM   #1
scott4957
LQ Newbie
 
Registered: Oct 2005
Posts: 24

Rep: Reputation: 15
Programs cannot find GTK+-2.0


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!

RS
 
Old 10-05-2005, 12:00 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
Old 10-05-2005, 12:01 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
sorry double post.
 
Old 10-05-2005, 06:16 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Code:
#urpmi libgtk+2.0_0-devel
 
Old 10-05-2005, 11:19 AM   #5
scott4957
LQ Newbie
 
Registered: Oct 2005
Posts: 24

Original Poster
Rep: Reputation: 15
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.

Gtk+2.0-2.6.4-2
gtkialogs
gtk-engines
gtkspell
guile-gtk
libgtk+1.2-1.2.10-41mdk
libgtk+2.0_0-2.6.4-2mdk
libgtkhtml
libgtkhtml “another version”
libgtk-linux-fb
libgtkspell
kibgtk+-x11
libguile-gtk
kibwxgtk2.5
perl-gtk2 “times 3”
wxGTK2.5

It seems i may have two different versions of GTK running, could this be my problem?

Reddazz i tried to install libgtk+2.0_0-devel from a website but received the following error:

Some package requested cannot be installed:
libgtk+2.0_0-devel-2.8.3-4mdk.i586
(due to unstaisfied libgtk+2.0_0[==2.8.3

Any ideas guys? Thanks again.
 
Old 10-05-2005, 03:06 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
Old 10-05-2005, 04:08 PM   #7
scott4957
LQ Newbie
 
Registered: Oct 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Great, thanks for the help. I set up urpmi via easyurpmi web site, then downloaded the correct development package for GTK, it was able to find GTK after that. Thanks again for all the help!

RS
 
Old 10-06-2005, 11:21 AM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
On Mandriva, try not to download packages manually, use the urpmi tool or its gui (rpmdrake) to manage packages. Make sure you update your urpmi sources regularly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make gtk programs kira Programming 1 04-28-2005 07:34 AM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
running GTk programs sonu1082 Linux - Software 0 11-04-2004 12:15 AM
Gtk programs not starting?? tearinox Linux - General 2 03-04-2004 05:02 PM
Can't compile gtk+ programs =\ EnigmaX Linux - Software 19 09-17-2003 05:41 PM


All times are GMT -5. The time now is 11:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration