环境: CentOS 6.5x64 PHP-5.4.26 [root@www imap]# yum -y install krb5-devel libc-client libc-client-devel [root@www imap]# ln -sv /usr/lib64/libc-client.so /usr/lib/libc-client.so 进行PHP软件扩展目录 [root@www /]# cd /usr/local/src/php-5.4.26/ext/imap [root@www imap]# /usr/local/php5/bin/phpize [root@www imap]# ./configure --with-php-config=/usr/local/php5/bin/php-config --with-imap=/usr/lib64 --with-imap-ssl --with-kerberos [root@www imap]# make;make install [root@www map]]# vi /etc/php.d/imap.ini extension = /usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525/imap.so [root@www imap]# service php-fpm restart |