php编译安装容易碰到问题,下面是常见的现象及解决办法

1.

checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not haCheck config.log for additional information.
#这是由于缺少libc-client,libc-client-devel安装包所致
#解决方法
yum -y install libc-client-*


2.

configure: error: Cannot find ldap.h
解决方法:
yum -y install install openldap openldap-devel