简体   繁体   English

在官方PHP docker映像上安装IMAP扩展名时出错

[英]Errors when installing IMAP extension on official PHP docker image

If you're installing the IMAP extension in your PHP docker image, it's possible that you get some errors like: 如果要在PHP docker映像中安装IMAP扩展,则可能会出现一些错误,例如:

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. 配置:错误:utf8_mime2text()具有新的签名,但是缺少U8T_CANONICAL。 This should not happen. 这不应该发生。 Check config.log for additional information. 检查config.log以获取其他信息。

and then: 接着:

configure: error: This c-client library is built with Kerberos support. 配置:错误:此c客户端库内置Kerberos支持。

To solve this error: 要解决此错误:

configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. 配置:错误:utf8_mime2text()具有新的签名,但是缺少U8T_CANONICAL。 This should not happen. 这不应该发生。 Check config.log for additional information. 检查config.log以获取其他信息。

You just need to run the next command: 您只需要运行下一个命令:

apt update && apt install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/*

So, now is probably that a new error appear: 因此,现在可能出现了一个新错误:

configure: error: This c-client library is built with Kerberos support. 配置:错误:此c客户端库内置Kerberos支持。

To solve this new error, you must install the extension with the next command: 要解决此新错误,必须使用以下命令安装扩展:

docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM