调整PKG_CONFIG_PATH不起作用

时间:2016-07-06 15:28:13

标签: pkg-config

我在安装依赖于另一个软件包的软件包时出现问题 - poppler-glib。我安装了poppler-glib(最新版本),前缀为/home/user/local/poppler-glib*.pc中存在/home/user/local/poppler-glib/lib/pkgconfig个文件。我已添加PKG_CONFIG_PATH变量的路径(我在tcsh上):

setenv PKG_CONFIG_PATH /home/user/local/poppler-glib/lib/pkgconfig

然而,当我尝试运行其他包的./configure脚本时,我收到以下错误:

configure: error: Package requirements (poppler-glib >= 0.5.4) were not met:

No package 'poppler-glib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POPPLERGLIB_CFLAGS
and POPPLERGLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

因此,问题:如何调整PKG_CONFIG_PATH变量以使其可见?

1 个答案:

答案 0 :(得分:-2)

使用以下命令安装poppler-glib: sudo apt-get install libpoppler-glib-dev