Errors when installing IMAP extension on official PHP docker image

青春壹個敷衍的年華 提交于 2020-05-14 11:52:21

问题


If you're installing the IMAP extension in your PHP docker image, it's possible that you get some errors like:

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

and then:

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


回答1:


To solve this error:

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

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.

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


来源:https://stackoverflow.com/questions/52314179/errors-when-installing-imap-extension-on-official-php-docker-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!