Results 1 to 2 of 2

Thread: What is PKG_CONFIG_PATH?

  1. #1
    Join Date
    Jul 2008
    Inside the Cell B.E.
    Ubuntu Jaunty Jackalope (testing)

    What is PKG_CONFIG_PATH?

    I am suprised only 2 results showed up for this thread and they were not what I was looking for. What is PKG_CONFIG_PATH? Where is located? In the Makefile? How do I edit PKG_CONFIG_PATH?

  2. #2
    Join Date
    Sep 2008
    Ubuntu 10.04 Lucid Lynx

    Re: What is PKG_CONFIG_PATH?

    PKG_CONFIG_PATH is an environment variable. Environment variables contain information that affect how certain processes behave on a computer.

    PKG_CONFIG_PATH in particular contains a path to all the directories that the pkg-config script checks for certain files it can use to do its job, and is usually the directory /usr/lib/pkgconfig.

    To set PKG_CONFIG_PATH to this directory, use this command:

    export PKG_CONFIG_PATH=/usr/lib/pkgconfig
    You can replace /usr/lib/pkgconfig with any directory, and you can include multiple directories if they are separated by a colon ( : ), for example:

    export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib/blah:/home/username/Desktop
    This value will cause the pkg-config script to check the /usr/lib/pkgconfig, /usr/lib/blah, and /home/username/Desktop directories.

    If you type this into a terminal, the PKG_CONFIG_PATH will be set for as long as the terminal is open.

    If you type it into your .bashrc file in your home directory, it will be reset every time you open a new terminal window, for that terminal window.

    If you type it into your .profile file in your home directory, it will be reset every time you log in.

    To view the current value of the PKG_CONFIG_PATH variable, use this command:

    All environment variables can be set and viewed in this manner.

    For more information about environment variables, please see

    Last edited by C--; March 9th, 2009 at 10:40 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts