linux下安装php常见错误

来源:互联网 发布:小葫芦数据检测作假 编辑:程序博客网 时间:2024/04/24 01:25

linux下安装PHP常见错误

报错:configure: error: jpeglib.h not found

解决:

1.检查是否安装libjpeg`[root@localhost install]# yum list installed|grep libpnglibpng.x86_64           2:1.2.49-1.el6_2libpng-devel.x86_64     2:1.2.49-1.el6_2`2.安装 yum -y install libjpeg-devel

报错configure: error: xml2-config not found. Please check your libxml2 installation.

解决:

1.安装libxml2和libxml2-devel包yum install libxml2yum install libxml2-devel -y2.安装完之后查找xml2-config文件是否存在`[root@localhost install]#find / -name "xml2-config" /usr/bin/xml2-config

报错configure: error: OpenSSL Crypto library not found

解决:

安装openssl-devel包yum -y install openssl-devel

报错:configure: error: Please reinstall the libcurl distribution

解决:

安装curl的dev包yum -y install curl-devel
0 0
原创粉丝点击