当前位置: 技术问答>linux和unix
安装poppler(pdf中文支持)时出现环境变量设置问题
来源: 互联网 发布时间:2016-09-21
本文导语: ./configure后,出现下面的问题。但是实际上我已经安装上了fontconifg,最新版本。 ------------- checking for FONTCONFIG... configure: error: Package requirements (fontconfig >= 2.0.0) were not met: No package 'fontconfig...
./configure后,出现下面的问题。但是实际上我已经安装上了fontconifg,最新版本。
-------------
checking for FONTCONFIG... configure: error: Package requirements (fontconfig >= 2.0.0) were not met:
No package 'fontconfig' 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 FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
----------------
如何设置这两个环境变量啊?我的电脑里没有echo $FONTCONFIG后没有值.
FONTCONFIG_CFLAGS
FONTCONFIG
-------------
checking for FONTCONFIG... configure: error: Package requirements (fontconfig >= 2.0.0) were not met:
No package 'fontconfig' 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 FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
----------------
如何设置这两个环境变量啊?我的电脑里没有echo $FONTCONFIG后没有值.
FONTCONFIG_CFLAGS
FONTCONFIG
|
重新安装fontconfig

|
http://www.linuxeden.com/forum/viewthread.php?tid=164524
可以看下这个
就是编辑~/.bashrc文件,将fontconfig所在的路径放进来即可,
我的
PKG_CONFIG_PATH=/opt/kde3.3.0/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/pkgconfig:/usr/X11R6/lib/pkgconfig
可以看下这个
就是编辑~/.bashrc文件,将fontconfig所在的路径放进来即可,
我的
PKG_CONFIG_PATH=/opt/kde3.3.0/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/pkgconfig:/usr/X11R6/lib/pkgconfig
|
你是通过什么方式安装的fontconifg?
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。