我在安装依赖于另一个软件包的软件包时遇到问题 - 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
变量以使其可见?
只需使用以下命令安装poppler-glib:sudo apt-get install libpoppler-glib-dev