这个问题在这里已经有了答案:
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/