1
我在安装依赖于另一个程序包的程序包时遇到问题 - poppler-glib
。我安装了poppler-glib
(最新版本),其前缀为/home/user/local/poppler-glib
,*.pc
文件存在于/home/user/local/poppler-glib/lib/pkgconfig
中。我已经添加了这条道路的PKG_CONFIG_PATH
变量(我在tcsh
):调整PKG_CONFIG_PATH不起作用
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
变量以使其可见?