编译时候错误的解决方法
configure: error: freetype.h not found.
yum install freetype-devel
configure: error: Please reinstall libmhash – I cannot find mhash.h
yum install mhash-devel
configure: error: Cannot find pspell
yum install pspell-devel
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
yum install libc-client-devel
configure: error: Directory /usr is not a FreeTDS installation directory
yum install freetds-devel
checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
yum install unixODBC-devel
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
yum install postgresql-devel
configure: error: Please reinstall the libcurl distribution – easy.h should be in <curl-dir>/include/curl/
yum install curl-devel
configure: error: SNMP sanity check failed. Please check config.log for more information.
yum install net-snmp net-snmp-devel
configure: error: libjpeg.(a|so) not found.
yum install libjpeg-devel
再一种在64位系统中找不到文件需要添加参数-with-libdir=lib64
configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2-devel
configure: error: Please reinstall the BZip2 distribution
yum install bzip2-devel
configure: error: jpeglib.h not found.
yum install libjpeg-devel
configure: error: png.h not found.
yum install libpng-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel
configure: error: Please reinstall the BZip2 distribution
yum install bzip2-devel
configure: error: DBA: Could not find necessary header file(s).
yum install db4-devel
configure: error: Please reinstall the libcurl distribution – easy.h should be in
yum -y install curl-devel
checking for QDBM support… no
configure: error: DBA: Could not find necessary header file(s).
yum -y install gdbm-devel