本帖最后由 FacFox 于 2022-10-29 14:49 编辑
AlmaLinux 9算是比较新的系统,许多rep都没有默认安装,因此安装imap扩展会出现如下错误:
- configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
复制代码 CentOS7下的解决方案为:- yum install -y libc-client-devel
复制代码 但是这个在AlmaLinux 9 里面是不管用的。因此需要手动查询libc-client-devel的安装包:https://pkgs.org/download/libc-client-devel。
对应的Centos 9/Rhel 9/AlmaLinux 9/RockyLinux 9的安装方式(如果是Centos 8/Rhel 8/Alma Linux 8/Rocky Linux 8系列的,把9替换成8即可):
- wget http://rpms.remirepo.net/enterprise/remi-release-9.rpm
- rpm -Uvh remi-release-9.rpm
- dnf -y --enablerepo=remi install uw-imap-devel
复制代码 安装完成后,还需要在PHP-禁用函数中删除imap_open,否则imap模块依然无法连接imap服务器。
|
|