我在安装依赖于另一个软件包的软件包时出现问题 - 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
变量以使其可见?
答案 0 :(得分:-2)
使用以下命令安装poppler-glib: sudo apt-get install libpoppler-glib-dev