修復編譯安裝PHP錯誤
出自 YTYZX有图有真相的百科
1.编译安装PHP时提示如下错误。 错误信息:cURL version 7.10.5 or later is required to compile php with cURL support.
2.输入“yum install libcurl-devel”并按回车键确定。
3.确认无误后按“y”键安装即可,安装完毕后重新编译安装PHP。
其他類似錯誤進行對應安裝即可。 內容出處:https://coderwall.com/p/ggmpfa/php-configuration-error-and-solutions-in-rpm 4.configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution yum install libxslt-devel
5.configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation. yum install net-snmp-devel
6.configure: error: Please reinstall readline - I cannot find readline.h yum install readline-devel
7.configure: error: Cannot find pspell yum install aspell-devel
8.checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found! yum install unixODBC-devel
9.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
10.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
11.configure: error: freetype.h not found. yum install freetype-devel
12.configure: error: xpm.h not found. yum install libXpm-devel
13.configure: error: png.h not found. yum install libpng-devel
14.configure: error: vpx_codec.h not found. yum install libvpx-devel
15.configure: error: Cannot find enchant yum install enchant-devel
16.configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/ yum install libcurl-devel