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

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

时间:2015-04-14 19:59:42      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:php安装错误解决方法

今天在安装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 install libpng

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


本文出自 “爱心” 博客,请务必保留此出处http://9826268.blog.51cto.com/9816268/1632348

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

标签:php安装错误解决方法

原文地址:http://9826268.blog.51cto.com/9816268/1632348

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