[英]CentOS 7 cannot install php-imap extension
I am trying to install imap extension on a CentOS 7 server with PHP version 7.2.23.我正在尝试在 PHP 版本 7.2.23 的 CentOS 7 服务器上安装 imap 扩展。 I tried the command yum install php-imap
and output is我试过命令yum install php-imap
和 output 是
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 21 kB 00:00:00
* base: mirrors.vangus.co.il
* epel: mirror.de.leaseweb.net
* extras: mirror.ratiokontakt.de
* remi-php72: mirror.23media.com
* remi-safe: mirror.23media.com
* updates: mirror.fra10.de.leaseweb.net
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
mariadb | 3.4 kB 00:00:00
remi-php72 | 3.0 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/2): epel/x86_64/primary_db | 6.9 MB 00:00:00
No package php-imap available.
Error: Nothing to do
So I googled and found out that we can install from epel repository.所以我搜索了一下,发现我们可以从 epel 存储库安装。 So I ran the command yum list *imap*
and I am getting所以我运行了命令yum list *imap*
我得到了
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.vangus.co.il
* epel: mirror.de.leaseweb.net
* extras: mirror.ratiokontakt.de
* remi-php72: mirror.23media.com
* remi-safe: mirror.23media.com
* updates: mirror.fra10.de.leaseweb.net
Available Packages
cyrus-imapd.x86_64 2.4.17-15.el7 base
cyrus-imapd-devel.i686 2.4.17-15.el7 base
cyrus-imapd-devel.x86_64 2.4.17-15.el7 base
cyrus-imapd-utils.x86_64 2.4.17-15.el7 base
imapfilter.x86_64 2.6.15-1.el7 epel
imapsync.noarch 1.727-1.el7 epel
imaptest.x86_64 20151005-1.el7 epel
offlineimap.noarch 6.7.0-1.el7 epel
perl-Mail-IMAPClient.noarch 3.37-1.el7 epel
python-abimap-doc.noarch 0.3.1-3.el7 epel
python36-abimap.noarch 0.3.1-3.el7 epel
up-imapproxy.x86_64 1.2.8-0.12.20171022svn14722.el7 epel
uw-imap.x86_64 2007f-16.el7 epel
uw-imap-devel.x86_64 2007f-16.el7 epel
uw-imap-static.x86_64 2007f-16.el7 epel
uw-imap-utils.x86_64 2007f-16.el7 epel
How can I install imap extension for PHP?如何为 PHP 安装 imap 扩展? Please help.请帮忙。
Using a proper configuration, from the wizard instructions, install should work使用正确的配置,根据向导说明,安装应该可以工作
# dnf install php-imap
Dependencies resolved.
====================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================
Installing:
php-imap x86_64 7.2.34-4.el7.remi remi-php72 89 k
Installing dependencies:
libc-client x86_64 2007f-16.el7 epel 562 k
Transaction Summary
====================================================================================================================================================================================
Install 2 Packages
Total download size: 651 k
Installed size: 1.7 M
Is this ok [y/N]:
- base: mirrors.vangus.co.il基地:mirrors.vangus.co.il
- epel: mirror.de.leaseweb.net epel:mirror.de.leaseweb.net
- extras: mirror.ratiokontakt.de附加功能:mirror.ratiokontakt.de
- remi-php72: mirror.23media.com remi-php72:mirror.23media.com
- remi-safe: mirror.23media.com雷米安全:mirror.23media.com
- updates: mirror.fra10.de.leaseweb.net更新:mirror.fra10.de.leaseweb.net
Hmm... looks good嗯……看起来不错
Package php-imap exists and should be found Package php-imap存在,应该可以找到
Please check yum enabled plugins, or try with --noplugins options请检查启用 yum 的插件,或尝试使用 --noplugins 选项
Please also be aware that PHP 7.2 has reached its end of life in November 2020, so you should consider using a supported version .另请注意, PHP 7.2 已于 2020 年 11 月结束生命周期,因此您应该考虑使用受支持的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.