zen-cart网站,模版,采集,二次开发

首页 » Linux » liunx基础 » 阅读文章

Centos通过phpize安装php-imap扩展

2013-08-08 01:35 31747 0 发表评论
标签:


今天需要用到imap_open等相关函数来提取邮件中的无效邮件,结果环境没有imap组件,没办法自己装

当然重新编译php是非常痛苦,所以一般都是使用phpize来扩展组件

第一步

安装依赖包

yum -y install libc-client-*

第二步

进入php安装包中的imap目录

cd /root/lamp0.4/php-5.3.13/ext/imap

第三步

执行 phpize 命令

/usr/local/php/bin/phpize

注:/usr/local/php 是我的 php 安装目录

第死步

执行完 phpize 命令后执行配置

./configure --with-php-config=/usr/local/php/bin/php-config --with-kerberos=/usr --with-imap-ssl=/usr

注:/--with-php-config=/usr/local/php/bin/php-config php配置文件所在目录

第五步

编译安装

make && make install

<然后重启apahce即可

随机日志

评论 共0条 (RSS 2.0) 发表评论

  1. 暂无评论,快抢沙发吧。

发表评论

  • 
  • 插入代码

联系我 Contact Me

回到页首