LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where is the PKG_CONFIG_PATH environment variable? (http://www.linuxquestions.org/questions/linux-software-2/where-is-the-pkg_config_path-environment-variable-122986/)

jdruin 12-05-2003 01: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 02: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:

PKG_CONFIG_PATH=/usr/lib/pkgconfig
export PKG_CONFIG_PATH

mhearn 12-05-2003 07: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 08: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 09:31 PM

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


All times are GMT -5. The time now is 11:46 PM.