php编译安装过程中遇到问题

编译安装PHP时遇到的问题

问题1:

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

解决办法是:

yum install -y libxml2-devel

问题2:

configure: error: Cannot find OpenSSL's <evp.h>

解决办法是:

yum install -y openssl openssl-devel

问题3:

checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution

解决办法:

yum install -y bzip2 bzip2-devel

问题4:

configure: error: png.h not found.

解决办法:

yum install -y libpng libpng-devel

问题5:

configure: error: freetype.h not found.

解决办法:

yum install -y freetype freetype-devel

问题6:

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解决办法:

rpm -ivh "http://www.lishiming.net/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm"
yum install -y  libmcrypt-devel
posted @ 2017-06-06 03:57  Achxku  阅读(263)  评论(0编辑  收藏  举报