zoukankan      html  css  js  c++  java
  • php 安装imap报错“configure: error: utf8_mime2text() has new signature”解决

    环境: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

  • 相关阅读:
    Bootstrap 插件收集
    target和currentTarget
    微信小程序
    flex
    vue中使用icon和打包
    rem的使用
    vue中使用sass和compass
    vue父子组件传递参数
    weex
    常用软件&&网址
  • 原文地址:https://www.cnblogs.com/zqifa/p/php-docker-install-imap.html
Copyright © 2011-2022 走看看