我正在尝试pkg配置。
pkg config—列出所有
仍然显示包的列表,即使PKG_CONFIG_PATH为空。

最佳答案

如果变量为空,则使用标准目录/usr/share/pkgconfig/usr/lib/<arch>/pkgconfig
看看我的例子:

$ pkg-config  --debug 2>&1  | head
no output option set, defaulting to --exists
Error printing disabled by default due to use of output options --exists, --atleast/exact/max-version or no output option at all. Value of --print-errors: 0
Error printing disabled
Adding virtual 'pkg-config' package to list of known packages
Cannot open directory '/usr/local/lib/powerpc64le-linux-gnu/pkgconfig' in package search path: No such file or directory
Cannot open directory '/usr/local/lib/pkgconfig' in package search path: No such file or directory
Cannot open directory '/usr/local/share/pkgconfig' in package search path: No such file or directory
Scanning directory '/usr/lib/powerpc64le-linux-gnu/pkgconfig'

关于linux - PKG_CONFIG_PATH无法清除,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29654092/

10-13 21:27