找到之前安装的包,或是重新下载解压安装包: 1. 进入源码安装包 [root@hexu.org ~]$ cd /data/softs/php_packet/php-5.3.23/ext/imap 2. 安装IMAP依赖 [root@hexu.org imap]$ yum install -y libc-client-devel[root@hexu.org imap]$ ln -s /usr/lib64/libc
找到之前安装的包,或是重新下载解压安装包:
1. 进入源码安装包
[root@hexu.org ~]$ cd /data/softs/php_packet/php-5.3.23/ext/imap
2. 安装IMAP依赖
[root@hexu.org imap]$ yum install -y libc-client-devel [root@hexu.org imap]$ ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
3. 进行安装
[root@hexu.org imap]$ /usr/local/php/bin/phpize [root@hexu.org imap]$ ./configure --with-php-config=/usr/local/php/bin/php-config --with-imap --with-imap-ssl --with-kerberos [root@hexu.org imap]$ make && make install
4. 最后调整php.ini
[root@hexu.org imap]$ vi /usr/local/php/lib/php.ini ##vi php.ini add following config [imap] extension = imap.so
5. 检查是否安装成功
[root@hexu.org imap]# php -v PHP 5.3.23 (cli) (built: Apr 7 2013 23:20:21) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies [root@hexu.org imap]# php -m | grep imap imap ## 看到这里,说明成功安装了
按上面顺序安装应该不会有报错,如果发现错误根据提示找相应的依赖包安装即可,下面举例安装过程遇到的2个error.
1. 没有安装libc-client-devel导致,按上面第一步安装即可, Error info:
checking for utf8_mime2text signature... new checking for U8T_DECOMPOSE... configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
2. 找不到libc-client.a library, 需要手动添加文件link, Errof info:
checking for crypt in -lcrypt... yes configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
解决方法:
[root@hexu.org]$ ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so
网友文章参考:http://blog.csdn.net/alexdream/article/details/7408453
原文地址:Centos-6.3/PHP5.3.23 P 不重编译PHP添加 IMAP 扩展模块, 感谢原作者分享。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

Dreamweaver Mac版
视觉化网页开发工具

DVWA
Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

安全考试浏览器
Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。

ZendStudio 13.5.1 Mac
功能强大的PHP集成开发环境

SublimeText3 英文版
推荐:为Win版本,支持代码提示!