how to adjust PKG_CONFIG_PATH environment-variable

Posted noxy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了how to adjust PKG_CONFIG_PATH environment-variable相关的知识,希望对你有一定的参考价值。

PKG_CONFIG_PATH is a environment variable that specifies additional paths in which pkg-config will search for its .pc files.

This variable is used to augment pkg-config‘s default search path. On a typical Unix system, it will search in the directories /usr/lib/pkgconfig and /usr/share/pkgconfig. This will usually cover system installed modules. However, some local modules may be installed in a different prefix such as /usr/local. In that case, it‘s necessary to prepend the search path so that pkg-config can locate the .pc files.

The pkg-config program is used to retrieve information about installed libraries in the system. The primary use of pkg-config is to provide the necessary details for compiling and linking a program to a library. This metadata is stored in pkg-config files. These files have the suffix .pc and reside in specific locations known to the pkg-config tool.

To check the PKG_CONFIG_PATH value use this command:

echo $PKG_CONFIG_PATH

To set the PKG_CONFIG_PATH value use:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

or

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

以上是关于how to adjust PKG_CONFIG_PATH environment-variable的主要内容,如果未能解决你的问题,请参考以下文章

Adapt to 与adjust to有啥区别?

adjust to与adapt to的区别

adjust to和adapt to有啥区别

how to read from __consumer_offsets topic

How to create own operator with python in mxnet?

The plan have to be adjust ...