加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

php 安装imap报错“configure: error: utf8_mime2text() has new

发布时间:2020-12-16 03:19:22 所属栏目:安全 来源:网络整理
导读:环境:php官方docker镜像 php:7.2-apache 安装IMAP扩展模块 执行命令: docker-php-ext-install imap 报错信息: configure: error: utf8_mime2text() has new signature,but U8T_CANONICAL is missing. This should not happen. Check config.log for addit

环境:php官方docker镜像 php:7.2-apache

安装IMAP扩展模块
执行命令:
docker-php-ext-install imap

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

查了一下说缺少libc模块,修改命令:

RUN apt-get update &&
apt-get install -y --no-install-recommends libc-client-dev libkrb5-dev &&
rm -r /var/lib/apt/lists/* &&
docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&
docker-php-ext-install -j$(nproc) imap

安装成功。

配置conf.d目录下多了docker-php-ext-imap.ini文件

引入imap模块代码:
extension=imap.so

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读