redhat安装fontconfig
为安装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 还是报这个错误。
很少纠结,求助中。。。
------解决方案--------------------
你可以手动传expat目录进去.
在fontconfig
./configure ........ \
--with-expat=$EXPAT_PATH/bin \
--with-expat-includes=$EXPAT_PATH/include \
--with-expat-lib=$EXPAT_PATH/lib