编译安装imap扩展
./configure --with-php-config=/usr/local/php/php71/bin/php-config --with-imap
报错
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
yum install libc-client-devel
configure: error: 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
configure: error: This c-client library is built with Kerberos support.
Add --with-kerberos to your configure line. Check config.log for details.
./configure --with-php-config=/usr/local/php/php71/bin/php-config --with-imap --with-kerberos
configure: error: This c-client library is built with SSL support.
Add --with-imap-ssl to your configure line. Check config.log for details.
./configure --with-php-config=/usr/local/php/php71/bin/php-config --with-imap --with-kerberos --with-imap-ssl
make && make install