-   Linux - Software (
-   -   Where is the PKG_CONFIG_PATH environment variable? (

jdruin 12-05-2003 12:17 PM

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.

linuxman2k1 12-05-2003 01:38 PM

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:


mhearn 12-05-2003 06:02 PM

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.

jdruin 12-05-2003 07:21 PM

So is PKG_CONFIG_PATH the path where pkg-config is installed or where the .pc files are installed?

GT_Onizuka 12-05-2003 08:31 PM

Hence the name PKG_CONFIG_PATH, the "path" to "package config" :D

All times are GMT -5. The time now is 06:17 AM.