yum intsall zlib zlib-devel //gzip 压缩和解压
yum install openssl openssl-devel
yum install libxml2 libxml2-devel
yum install libcurl libcurl-devel
yum install libjpeg libjpeg-devel //jpeg 图片处理工具
yum install libpng libpng-devel //png图片处理
yum install freetype freetype-devel //一个字形图glyph image产生工具
//configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
//imap支持 如果出现 Cannot find imap library (libc-client.a). Please check your c-client installation。 用ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so解决
yum install libc-client-devel
yum install libmcrypt libmcrypt-devel
//出现 /usr/bin/ld: cannot find -liconv 解决如下
wget http://mirror.hust.edu.cn/gnu/libiconv/libiconv-1.14.tar.gz
tar xvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure //默认安装位置 /usr/local/lib/
make
make install
make ZEND_EXTRA_LIBS='-liconv' #手工指定将iconv加到php额外库中,一般来说这些库的增加php可以自动完成, 只是iconv貌似不太合群,需要手工操作。