LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-05-2003, 01:17 PM   #1
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
Where is the PKG_CONFIG_PATH environment variable?


Where is the PKG_CONFIG_PATH environment variable and what is the proper proceedure to set it?

What does this variable do for package config program (pkg-config)?

How does pkg-config work?

I am getting all kinds of error trying to install gtk+ and its underlying compnents to get Xwindows to work again. I think I need to under stand pkg-config better because some of the components wont install saying pkg-config cannot find dependencies.
 
Old 12-05-2003, 02:38 PM   #2
linuxman2k1
LQ Newbie
 
Registered: Nov 2003
Location: Baltimore, Maryland
Distribution: LFS 5.0
Posts: 17

Rep: Reputation: 0
pkg-config looks for .pc files telling it where other packages are installed.
eache directory is separated by a :
if installing gnome in prefix=/usr/gnome2 you whould add
:/usr/gnome2/lib/pkgconfig, to the example below

If you are using Mandrake or redhat you can set it in /etc/profile by adding these two lines:

PKG_CONFIG_PATH=/usr/lib/pkgconfig
export PKG_CONFIG_PATH

Last edited by linuxman2k1; 12-05-2003 at 02:43 PM.
 
Old 12-05-2003, 07:02 PM   #3
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
just run

export PKG_CONFIG_PATH=whatever

from the command line before running configure.

However, your system must be pretty broke if you need to install GTK. Red Hat comes with it as standard.
 
Old 12-05-2003, 08:21 PM   #4
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Original Poster
Rep: Reputation: 30
So is PKG_CONFIG_PATH the path where pkg-config is installed or where the .pc files are installed?
 
Old 12-05-2003, 09:31 PM   #5
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 30
Hence the name PKG_CONFIG_PATH, the "path" to "package config"
 
  


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_PATH environment Micro420 Linux - Software 3 12-17-2004 08:57 PM
"PKG_CONFIG_PATH environment variable" huh? plz help David_g17 Linux - Software 3 09-30-2004 07:33 PM
setting PKG_CONFIG_PATH variable, GAIM ./configure Hal Linux - Newbie 5 07-17-2004 04:12 PM
PKG_CONFIG_PATH environment variable mohapi Linux - Software 8 01-11-2004 09:05 PM
PKG_CONFIG_PATH environment variable hyperriven Linux - Software 2 10-24-2003 09:29 PM


All times are GMT -5. The time now is 02:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration