LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-06-2004, 10:07 AM   #1
supersucker
Member
 
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Rep: Reputation: 15
pkg-config


hi,

i tried to install gtk, and ended up with the following error message after running ./configure:

*** Your version of pkg-config is too old. You need version 0.9.0 or newer.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.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.

which is weird, because i have installed the newest version pkgconfig-0.15.0

any piece of advice would be appreciated, i dont know how to fix that error...thx
 
Old 09-06-2004, 12:34 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You've not given us much to go on. You could tell us what distro you're using. From the look of your error message the configure script has found an old version of pkg-config. Presumably it's installed in /usr and you installed the new version in /usr/local so bash is finding the old version first. You can usually choose where to install things by passing the option --prefix=/some/where to configure like so
./configure --prefix=/usr
To find out some of the other options available, try
./configure --help
 
Old 09-07-2004, 08:52 AM   #3
supersucker
Member
 
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Original Poster
Rep: Reputation: 15
thanks for the help,

i will try that, oh and the distribution is suse linux 9.1...
is there any way i can completely erase the old version of pkg-config when i compiled the programm?
is simply erasing the old programm files and setting the path to the location of the new pkg-config sufficient?
 
Old 09-07-2004, 09:45 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You can re-arrange your $PATH how you want. To see what it's set to at the moment,
echo $PATH
To set it to something else, for example
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
This allows you to set the order so that it looks in /usr/local/bin before /usr/bin. When you close the shell the value you set your $PATH to will be unset so it won't make any permanent change.

What I don't understand is why your error message says "Your version of pkg-config is too old. You need version 0.9.0 or newer." Doesn't SuSE 9.1 use pkg-config-0.15? Maybe the configure script didn't find pkg-config at all.
There isn't a simple way of uninstalling things that were installed from source. Some packages support make uninstall but you need to either have the original source to do it with or compile it again with the same configure options. Sometimes the only thing to do is to delete the files by hand.
 
  


Reply



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
pkg-config sinXposed Linux - Software 12 10-30-2008 05:48 AM
pkg-config brimble2010 SUSE / openSUSE 3 05-19-2008 08:01 AM
pkg-config help gexzd Linux - Newbie 14 05-03-2004 10:27 AM
How do i use PKG-Config? A1Ph4 Linux - Software 1 08-08-2003 09:06 PM
pkg-config TraCe66 Linux - Newbie 1 07-01-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration