码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-11-16 18:23:45      阅读:381      评论:0      收藏:0      [点我收藏+]

标签:distrib   check   常见   test   adl   nss   lib   res   png   

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常见错误及解决方法

标签:distrib   check   常见   test   adl   nss   lib   res   png   

原文地址:https://www.cnblogs.com/root0/p/9970753.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!