1

我在centos 7上将php-imap安装到php7.2时遇到问题。当我运行时,yum install php-imap我得到了这个:

Loaded plugins: fastestmirror                                                                                                                                                                   Loading mirror speeds from cached hostfile                                                                                                                                                       * base: mirror.alpha-labs.net
 * centos-qemu-ev: mirror.imt-systems.com
 * centos-sclo-rh: mirror.alpix.eu
 * centos-sclo-sclo: mirror.imt-systems.com
 * epel: www.nic.funet.fi
 * extras: mirror.alpha-labs.net
 * remi-safe: mirror.awanti.com
 * updates: mirror.alpix.eu                                                                                                                                                                     Resolving Dependencies                                                                                                                                                                          --> Running transaction check                                                                                                                                                                   ---> Package php-imap.x86_64 0:5.4.16-9.el7 will be installed                                                                                                                                   --> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-imap-5.4.16-9.el7.x86_64                                                                                                --> Processing Dependency: php(api) = 20100412-64 for package: php-imap-5.4.16-9.el7.x86_64                                                                                                     --> Finished Dependency Resolution                                                                                                                                                              Error: Package: php-imap-5.4.16-9.el7.x86_64 (epel)
           Requires: php(zend-abi) = 20100525-64
           Installed: php-common-7.2.24-1.el7.remi.x86_64 (@remi-php72)
               php(zend-abi) = 20170718-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
               php(zend-abi) = 20100525-64                                                                                                                                                      Error: Package: php-imap-5.4.16-9.el7.x86_64 (epel)
           Requires: php(api) = 20100412-64
           Installed: php-common-7.2.24-1.el7.remi.x86_64 (@remi-php72)
               php(api) = 20170718-64
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-5.4.16-46.1.el7_7.x86_64 (updates)
               php(api) = 20100412-64                                                                                                                                                            You could try using --skip-broken to work around the problem                                                                                                                                    You could try running: rpm -Va --nofiles --nodigest 

我不知道如何解决这个问题,我已经搜索过这个问题的解决方案,但还没有找到,这也是我的 repo 列表:

repo id                                                                         repo name                                                                                                 status
Softaculous/7/x86_64                                                            Virtualizor Repo                                                                                               9
Softaculous-extra/7/x86_64                                                      Virtualizor-Extra-Repo                                                                                         0
base/7/x86_64                                                                   CentOS-7 - Base                                                                                           10,097
centos-qemu-ev/7/x86_64                                                         CentOS-7 - QEMU EV                                                                                            87
centos-sclo-rh/x86_64                                                           CentOS-7 - SCLo rh                                                                                         8,763
centos-sclo-sclo/x86_64                                                         CentOS-7 - SCLo sclo                                                                                         824
epel/x86_64                                                                     Extra Packages for Enterprise Linux 7 - x86_64                                                            13,456
extras/7/x86_64                                                                 CentOS-7 - Extras                                                                                            305
mysql-connectors-community/x86_64                                               MySQL Connectors Community                                                                                   131
mysql-tools-community/x86_64                                                    MySQL Tools Community                                                                                        100
mysql56-community/x86_64                                                        MySQL 5.6 Community Server                                                                                   496
remi-safe                                                                       Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                                 3,621
updates/7/x86_64                                                                CentOS-7 - Updates                                                                                           738
repolist: 38,627
4

1 回答 1

2

我找到了如何为 php7.2m 安装 php-imap,我运行命令yum --enablerepo=remi-php72 install php-imap做了什么

于 2019-11-15T16:45:51.127 回答