Skip to content

Instantly share code, notes, and snippets.

@liujingyu
Created June 5, 2015 06:57
Show Gist options
  • Save liujingyu/566afa04433f28f57dfd to your computer and use it in GitHub Desktop.
Save liujingyu/566afa04433f28f57dfd to your computer and use it in GitHub Desktop.
PHP编译安装时常见错误解决办法
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt-devel
configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.
yum install net-snmp-devel
configure: error: Please reinstall readline - I cannot find readline.h
yum install readline-devel
configure: error: Cannot find pspell
yum install aspell-devel
checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
yum install unixODBC-devel
configure: error: Unable to detect ICU prefix or /usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.
yum install libicu-devel
configure: error: utf8mime2text() has new signature, but U8TCANONICAL is missing. This should not happen. Check config.log for additional information.
yum install libc-client-devel
configure: error: freetype.h not found.
yum install freetype-devel
configure: error: xpm.h not found.
yum install libXpm-devel
configure: error: png.h not found.
yum install libpng-devel
configure: error: vpx_codec.h not found.
yum install libvpx-devel
configure: error: Cannot find enchant
yum install enchant-devel
configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
yum install libcurl-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment