安装php常遇报错提示及解决办法
2021/5/3 20:29:13
本文主要是介绍安装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
这篇关于安装php常遇报错提示及解决办法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-28怎么把PHP程序打包?-icode9专业技术文章分享
- 2024-09-28怎么用Phar打包PHP程序?-icode9专业技术文章分享
- 2024-09-13手动在github上下载的mfpt包,怎么放到thinkphp5.0框架并正常使用-icode9专业技术文章分享
- 2024-09-05python的<class 'bytearray'>相当于php的哪个数据类型-icode9专业技术文章分享
- 2024-09-05php 导出银行卡号避免科学技术法的方法-icode9专业技术文章分享
- 2024-08-30什么样的php代码质量差被称为垃圾代码-icode9专业技术文章分享
- 2024-08-30用 PHP 调用拼多多的接口以获取订单状态消息的步骤方法和代码示例-icode9专业技术文章分享
- 2024-08-27phpunit单元测试框架的入门和使用方法介绍-icode9专业技术文章分享
- 2024-08-24PHP 中date("w") 周一是多少-icode9专业技术文章分享
- 2024-08-14thinkphp8.0获取域名或主机名方法-icode9专业技术文章分享