LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2004, 04:36 PM   #1
CarnageBox
Member
 
Registered: Nov 2004
Location: Worcester, MA
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
pkg-config errors


This is probably something really simple but I'm a newbie. I'm trying to install a plug-in for gaim and when i run ./configure on the source it's giving me the following error:

*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (gaim >= 1.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.

I have Gaim v1.0.3-0.FC3, but apparently it can't tell that because something is messed up with where it's reading it? Any help you guys can give me would be greatly appreciated, thank you.
 
Old 12-01-2004, 04:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You just need to install pkgconfig - just follow the link to download and then install it.
 
Old 12-01-2004, 04:47 PM   #3
CarnageBox
Member
 
Registered: Nov 2004
Location: Worcester, MA
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
I just installed the newest version and it's still giving me the same error. I've tried running as root and also as my user. I even rebooted (which I'm not sure is necessary or not but I did anyway).
 
Old 12-01-2004, 04:52 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You shouldn't need to reboot - where is the binary installed? Make sure that it is in your PATH variable (echo $PATH) or link it into your path.
 
Old 12-01-2004, 04:54 PM   #5
CarnageBox
Member
 
Registered: Nov 2004
Location: Worcester, MA
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
How would I do that? sorry I'm still getting the hang of all this. When I do echo $PATH I get:

/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/grimey/bin
 
Old 12-01-2004, 05:07 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The easiest way is probably with a symlink:
ln -s /path/to/pkg-config /usr/bin/
 
Old 12-01-2004, 08:55 PM   #7
CarnageBox
Member
 
Registered: Nov 2004
Location: Worcester, MA
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
Alright that worked, but now I'm getting a different error.

checking for gaim >= 1.0.0... Package gaim was not found in the pkg-config search path.
Perhaps you should add the directory containing `gaim.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gaim' found

configure: error: Library requirements (gaim >= 1.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.

How would I add the path for gaim to the PKG_CONFIG_PATH? Thanks again for your help, it's much appreciated.
 
Old 12-02-2004, 12:02 AM   #8
CarnageBox
Member
 
Registered: Nov 2004
Location: Worcester, MA
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
I also set the PKG_CONFIG_PATH variable to include /usr/lib/pkgconfig which is where gaim.pc is located and i looked at gaim.pc and it says the version is 1.0.3 so I'm not sure why it's saying it can't find a gaim version greater than 1.0.0

To set the PKG_CONFIG_PATH I simply did PKG_CONFIG_PATH=/usr/lib/pkgconfig, maybe I should have done something else?
 
Old 12-02-2004, 02:07 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You will need to export it so that other proccesses can make use of the variable - try:
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
 
  


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


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration