AlmaLinux 9算是比較新的系統(tǒng),許多rep都沒(méi)有默認(rèn)安裝,因此安裝imap擴(kuò)展會(huì)出現(xiàn)如下錯(cuò)誤:
- configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
CentOS7下的解決方案為:
- yum install -y libc-client-devel
但是這個(gè)在AlmaLinux 9 里面是不管用的。因此需要手動(dòng)查詢libc-client-devel的安裝包:https://pkgs.org/download/libc-client-devel。
對(duì)應(yīng)的Centos 9/Rhel 9/AlmaLinux 9/RockyLinux 9的安裝方式(如果是Centos 8/Rhel 8/Alma Linux 8/Rocky Linux 8系列的,把9替換成8即可):
第一步更新下系統(tǒng)軟件包sudo dnf update
- 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-禁用函數(shù)中刪除imap_open,否則imap模塊依然無(wú)法連接imap服務(wù)器。