mCrypt安装失败的CentO 7

问题描述 投票:2回答:1

我必须安装mCrypt。我选择了这些方法:Install php-mcrypt on CentOS 6

而且对我不起作用。在尝试使用此方法之后:sudo yum安装epel-releasesudo yum install libmcrypt-devel

如果您正在运行默认的PHP安装,则也将要运行以下命令...

sudo yum install php-mcrypt

并且得到了:

[root@development ~]# sudo yum install libmcrypt-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ciril.fr
 * epel: mirror.nl.leaseweb.net
 * extras: ftp.ciril.fr
 * updates: ftp.ciril.fr
Resolving Dependencies
--> Running transaction check
---> Package libmcrypt-devel.x86_64 0:2.5.8-9.el6 will be installed
--> Processing Dependency: libmcrypt = 2.5.8-9.el6 for package: libmcrypt-devel-2.5.8-9.el6.x86_64
--> Running transaction check
---> Package libmcrypt.i686 0:2.5.8-9.el6 will be installed
--> Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for libmcrypt which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libmcrypt of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude libmcrypt.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of libmcrypt installed, but
            yum can only see an upgrade for one of those architectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of libmcrypt installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: libmcrypt-2.5.8-9.el6.i686 != libmcrypt-2.5.8-13.el7.x86_64
[root@development ~]# sudo yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.ciril.fr
 * epel: epel.mirrors.ovh.net
 * extras: ftp.ciril.fr
 * updates: ftp.ciril.fr
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.4.16-36.el7_1.x86_64 (@updates)
               php(api) = 20100412-64
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (base)
               php(api) = 20100412-64
Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.4.16-36.el7_1.x86_64 (@updates)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-23.el7_0.3.x86_64 (base)
               php(zend-abi) = 20100525-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@development ~]#

有帮助吗?预先谢谢你

php centos7 mcrypt webmin virtualmin
1个回答
0
投票

您可以尝试搜索相同的内容

yum search php-mcrypt

并执行以下步骤:

yum clean all
yum update

yum install php7*-mcrypt

yum install php*-mcrypt
© www.soinside.com 2019 - 2024. All rights reserved.