安装php常遇报错提示及解决办法
作者:互联网
1,Linux执行./configuer 编译命令报configure: WARNING: unrecognized options: ....
checking for cc… no
checking for gcc… no
原因是缺少gcc 编译环境
有yum源的直接执行 #yum -y install gcc gcc-c++
2,编译命令报checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
检查是否安装了libxm包: #rpm -qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
重新安装libxml2和libxml2-devel包
#yum install libxml2
#yum install libxml2-devel -y
安装完之后查找xml2-config文件是否存在
#find / -name "xml2-config"
/usr/bin/xml2-config
4,编译命令报Php7 configure: error: Cannot find OpenSSL’s <ev.h>
安装opensll:#yum install -y openssl openssl-devel
5,编译命令报If configure fails try --with-vpx-dir=<DIR> configure: error: jpeglib.h not
#yum -y install libjpeg-devel
6,编译命令报 configure:error:mcrypt.h not found. Please reinstall libmcrypt
先安装epel,再安装libmcrypt
#yum install -y epel-release
#yum install -y libmcrypt-devel
标签:configure,libxml2,常遇,编译,yum,install,报错,php,xml2 来源: https://blog.51cto.com/u_15179358/2751433