缺什么装什么:yum install -y xxx-devel。-devel 包包含编译所需的头文件与静态库。
| configure 报错关键词 | 缺失库 | yum 安装命令 |
|---|---|---|
| xslt-config not found | libxslt | yum -y install libxslt-devel |
| net-snmp-config not found | net-snmp | yum -y install net-snmp-devel |
| readline.h not found | readline | yum -y install readline-devel |
| Cannot find pspell | aspell | yum -y install aspell-devel |
| ODBC header sqlext.h not found | unixODBC | yum -y install unixODBC-devel |
| icu-config failed | ICU | yum -y install libicu-devel |
| utf8_mime2text / U8T_CANONICAL | libc-client | yum -y install libc-client-devel |
| freetype.h not found | freetype | yum -y install freetype-devel |
| xpm.h not found | libXpm | yum -y install libXpm-devel |
| png.h not found | libpng | yum -y install libpng-devel |
| vpx_codec.h not found | libvpx | yum -y install libvpx-devel |
| Cannot find enchant | enchant | yum -y install enchant-devel |
| easy.h should be in /include/curl | libcurl | yum -y install libcurl-devel |
| mcrypt.h not found | libmcrypt | yum -y install libmcrypt-devel (或手动编装 2.5.8) |
| Cannot find imap | libc-client | ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so |
| Cannot find ldap.h / libraries | openldap | yum -y install openldap-devel; cp -frp /usr/lib64/libldap* /usr/lib/ |
| libpq-fe.h not found | postgresql | yum -y install postgresql-devel |
| sqlite3 not found | sqlite | yum -y install sqlite-devel |
| BZip2 not found | bzip2 | yum -y install bzip2-devel |
| DBA header files | db4 | yum -y install db4-devel |
| jpeglib.h not found | libjpeg | yum -y install libjpeg-devel |
| gmp.h not found | gmp | yum -y install gmp-devel |