Linux下编译PHP常见错误及解决方法

Posted 平凡之路

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下编译PHP常见错误及解决方法相关的知识,希望对你有一定的参考价值。

1、configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2-devel -y openssl-devel bzip2-devel curl-devel

 

2、configure: error: Cannot find OpenSSL‘s <evp.h>
yum install openssl-devel



3、configure: error: Please reinstall the BZip2 distribution
yum install bzip2-devel

 

4、

./configure: line 410: test: please: integer expression expected

configure: error: reinstall
./configure: line 299: return: please: numeric argument required
./configure: line 309: exit: please: numeric argument required
yum -y install curl-devel





5、configure: error: jpeglib.h not found.
yum install libjpeg-devel -y

 

 

6、configure: error: png.h not found.
yum -y install libpng-devel


7、configure: error: freetype-config not found.
yum -y install freetype-devel

 


8、configure: error: Unable to locate gmp.h
yum install gmp-devel

 

 

9、configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel #需要epel源


10、configure: error: Please reinstall readline - I cannot find readline.h
yum -y install readline-devel


11、configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum -y install libxslt-devel






























以上是关于Linux下编译PHP常见错误及解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Cordova - XCode10编译热更新插件错误解决方法!

解决在linux下编译32程序出现“/usr/include/gnu/stubs.h:7:27: 致命错误:gnu/stubs-32.h:没有那个文件或目录问题”

解决Linux下编译.sh文件报错 unexpected operator Syntax error: word unexpected

redhat编译安装postfix-3.1.1出现的一些错误及解决方法

Linux下编译busybox时出现的问题

iOS:Xcode的beta下编译低版本项目时,出现的Link错误( "_fwrite$UNIX2003", referenced from:)