当前位置: 技术问答>linux和unix
redhat安装fontconfig
来源: 互联网 发布时间:2016-12-27
本文导语: 为安装gd库,安装libxml2 fontfree 安装fontconfig 时 ./configure --prefix=/usr/local/fontconfig --with-freetype-config=/usr/local/freetype/bin/freetype-config checking expat.h usability... no checking expat.h presence... no checking for expat.h... no ...
为安装gd库,安装libxml2 fontfree 安装fontconfig 时
./configure --prefix=/usr/local/fontconfig --with-freetype-config=/usr/local/freetype/bin/freetype-config
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
checking xmlparse.h usability... no
checking xmlparse.h presence... no
checking for xmlparse.h... no
configure: error: Cannot find usable expat library. This could mean that your version is too old.
我google了很多,下载expat2.0.1装了 也重装了libxml2 还是报这个错误。
很少纠结,求助中。。。
./configure --prefix=/usr/local/fontconfig --with-freetype-config=/usr/local/freetype/bin/freetype-config
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
checking xmlparse.h usability... no
checking xmlparse.h presence... no
checking for xmlparse.h... no
configure: error: Cannot find usable expat library. This could mean that your version is too old.
我google了很多,下载expat2.0.1装了 也重装了libxml2 还是报这个错误。
很少纠结,求助中。。。
|
你可以手动传expat目录进去.
在fontconfig
./configure ........
--with-expat=$EXPAT_PATH/bin
--with-expat-includes=$EXPAT_PATH/include
--with-expat-lib=$EXPAT_PATH/lib
在fontconfig
./configure ........
--with-expat=$EXPAT_PATH/bin
--with-expat-includes=$EXPAT_PATH/include
--with-expat-lib=$EXPAT_PATH/lib