简体   繁体   中英

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:

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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