php - 在官方 PHP docker 镜像上安装 IMAP 扩展时出错

标签 php docker imap

这个问题在这里已经有了答案:





docker php7.2-fpm can't install imap module

(3 个回答)


12 个月前关闭。




如果您在 PHP docker 镜像中安装 IMAP 扩展,则可能会出现一些错误,例如:

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



进而:

configure: error: This c-client library is built with Kerberos support.

最佳答案

要解决此错误:

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



你只需要运行下一个命令:
apt update && apt install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/*

所以,现在可能会出现一个新的错误:

configure: error: This c-client library is built with Kerberos support.



要解决这个新错误,您必须使用下一个命令安装扩展:
docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap

关于php - 在官方 PHP docker 镜像上安装 IMAP 扩展时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52314179/

相关文章:

docker-compose 不支持的服务配置

php - 为什么用 Zend_Config 对象加载 Zend_Application 会产生与发送文件名不同的结果?

PHP 特殊符号链接(symbolic link)用法

php - MYSQL IN 子句不起作用

docker - Cassandra Docker镜像中的CASSANDRA_PORT_9042_TCP_ADDR

docker - Tutum Redeploy触发器不会从图像重建

python - 从电子邮件中提取文本后,空格替换为 =20

c# - 使用 MailKit 检查 imap 文件夹是否存在

c# imap/pop3 邮件服务器

php - 使用 jQuery 和 PHP 无需表单即可保存到数据库