一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

Lnmp编译添加php imap模块

时间:2013-11-06 编辑:简简单单 来源:一聚教程网

 代码如下 复制代码

cd php-5.2.17/ext/imap
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos --with-imap-ssl
make
make install

编译时如遇到错误:

 代码如下 复制代码

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

安装imap库:

 代码如下 复制代码

yum install libc-client-devel

加载imap到php配置文件:

 代码如下 复制代码

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
extension=imap.so

热门栏目