600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > php安装libpng 安装php:configure: error: libpng.(a|so) not found解决办法

php安装libpng 安装php:configure: error: libpng.(a|so) not found解决办法

时间:2024-03-01 22:51:58

相关推荐

php安装libpng 安装php:configure: error: libpng.(a|so) not found解决办法

今天在安装PHP的时候.

./configure --prefix=/usr/local/php5 --with-gd --with-zlib --with-mysql=/usr/local/mysql/ --with-config-file-path=/usr/local/php5 --enable-mbstring --enable-fpm

先是报出如下错误:

configure: error: libxml2-config not found,check your libxml2 installation.

解决办法:

安装libxml2-devel,因为rpm -aq |grep libxml2 的时候显示libxml2本身已经安装;

yum -y install libxml2

解决之后再次configure, 这次报出如下错误:

configure: error: libpng.(a|so) not found

yum installlibpng

解决之道差不多, 同样通过安装libpng-devel解决.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。