更改

跳转至: 导航搜索

修复编译安装PHP错误

添加1,789字节, 2018年6月17日 (日) 18:32
无编辑摘要
错误信息:cURL version 7.10.5 or later is required to compile php with cURL support.
[[File:PHPComError1.png]]
2.输入“yum install libcurl-devel”并按回车键确定。
[[File:PHPComError2.png]]
3.确认无误后按“y”键安装即可,安装完毕后重新编译安装PHP。
[[File:PHPComError3.png]]
'''类似错误'''
其他类似错误进行对应安装即可。
内容出处: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
94
个编辑

导航菜单