Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-05-2003, 12:17 PM   #1
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, 01:38 PM   #2
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:


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

Rep: Reputation: 57
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, 07:21 PM   #4
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, 08:31 PM   #5
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

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


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

All times are GMT -5. The time now is 04:09 PM.

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