LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-31-2003, 02:19 PM   #1
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Rep: Reputation: 15
"pan" install issue - kpg-config & glib?


Hello,

I'm attempting to install pan v.0.14.2 and when I run ./configure I get this error. I would presume that means my libs are out of date? Weird, I just bought SuSE 8.2! LOL! Can anyone shed light on this?

Thanks

*** 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 (glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0 gobject-2.0 >= 2.2.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.


**EDIT***
BTW, I did get pkg-config from freedesktop.org and installed that without a hitch.. how do I use it?? (it's installed in /usr/local/bin

Last edited by LooseCanon; 08-31-2003 at 04:10 PM.
 
Old 08-31-2003, 03:23 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
you have to set the "PKG_CONFIG_PATH" variable before you run the ./configure script.

If you're using BASH as your shell (you most likely are), you use this command:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

You may have to change /usr/local/lib/pkgconfig to the right path, though thats the standard location.


That variable will only stay set for that session. So if you close the terminal or switch users, you lose that.

If you want it to be permanent, edit your /home/user/.bashrc

to have "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" in it.
 
Old 08-31-2003, 03:47 PM   #3
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Hmmm.

tried exporting the path like you mentioned and still get the same warning/error. Then I figured that the path must be wrong - as you mentioned it (/usr/local/lib). When I installed pkg-config it deposited a file called "pkg-config" in my /usr/local/bin. So I used that path instead just to test and I still got the same warning/error.

I'll keep hackin away ... something's bound to give.

here's the full path to where "pkg-config" resides right now:
/usr/local/bin/pkg-config
 
Old 08-31-2003, 03:55 PM   #4
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
ok, well I figured that instead of the PATH I'll just tell it where the pkg-config file IS, so I typed:

export PKG_CONFIG=/usr/local/bin/pkg-config

then

./configure

Seemed to be thinking more this time, but finished with this:
  • checking for glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0... Package glib-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'glib-2.0' found

    configure: error: Library requirements (glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0 gobject-2.0 >= 2.2.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.


- now I have to point to glib, gobject and gtherad - right?


*** EDIT ***
Oh boy..... just checked my system and couldn't find anything glib or gthread or gobject... so I googled for "glib" and it seems I need GTK+ to get it... BUT GTK+ needs other files to run properly.... Am I getting myself into "dependency hell" here?


Last edited by LooseCanon; 08-31-2003 at 04:09 PM.
 
Old 08-31-2003, 04:24 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Im sorry, I should have been more clear.

That path is NOT for the location of the pkg-config binary, but for other libraries that programs (mostly part of GNOME) use.

Its a way to have a standard location to store libraries and their info.

The folder will always end in /pkgconfig.

On my machine, I have a few locations, the main one is:

/usr/lib/pkgconfig

try that. But doing a:

su
[enter root password]
updatedb
[database updated]
locate /pkgconfig

will give you all the locations.
 
Old 08-31-2003, 05:05 PM   #6
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
hmm.. ok thanks about that. *phew* LOL!

"updatedb" doesn't work, but I did find /pkgconfig in my /usr/lib/ using whereis. I'll try changing the cmd and try the ./config again.

I did a little searching and noticed that I DO have glib installed (2.2.1) (updated just recently through online update to SuSE) but I can't find that file anywhere when I do a search. Gees, talk about hidden files.

**** EDIT ****

ok, well just like before... the pkg thing seems to work but I end up with this error at ./configure
  • checking for glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0... Package glib-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'glib-2.0' found

    configure: error: Library requirements (glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0 gobject-2.0 >= 2.2.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.

Like I mentioned, I do have glib 2.2.1 installed through the last online update to SuSE but when I do a search for it - it's nowhere to be found.

Last edited by LooseCanon; 08-31-2003 at 05:09 PM.
 
  


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
what is the version of my glib thinhla Linux - Software 3 06-28-2005 07:24 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
how do I check if glib is on my comp.. veritas Slackware 2 02-23-2004 06:41 PM
GLIB version ! >= 2.0.0? ShawnD Linux - Software 4 05-16-2003 06:16 PM

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

All times are GMT -5. The time now is 05:32 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