我需要从PHP5.x升级到7
删除旧的组件使用yum -删除php*已安装remi回购,更新所有安装似乎是有效的,但它的错误与一个m-密码问题,我不知道如何修复它?产出如下
# yum install php-mcrypt
Loaded plugins: fastestmirror, langpacks, replace
Loading mirror speeds from cached hostfile
* base: mirror.intergrid.com.au
* epel: fedora.uberglobalmirror.com
* extras: mirror.intergrid.com.au
* ius: ius.mirror.digitalpacific.com.au
* remi-safe: remi.conetix.com.au
* updates: mirror.intergrid.com.au
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-7.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-mcrypt-5.4.16-7.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-mcrypt-5.4.16-7.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Conflict: php70u-common-7.0.19-1.ius.centos7.x86_64 conflicts php-common < 7.0.19
--> Finished Dependency Resolution
Error: php70u-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
# rpm -qa | grep php
php70-php-cli-7.0.20-1.el7.remi.x86_64
php70-php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el7.remi.x86_64
php70-php-process-7.0.20-1.el7.remi.x86_64
php70-php-pecl-zip-1.14.0-1.el7.remi.x86_64
mod_php70u-7.0.19-1.ius.centos7.x86_64
php70-php-pecl-geoip-1.1.1-1.el7.remi.x86_64
php70-php-json-7.0.20-1.el7.remi.x86_64
php70-php-mcrypt-7.0.20-1.el7.remi.x86_64
php70-runtime-1.0-5.el7.remi.x86_64
php70-php-opcache-7.0.20-1.el7.remi.x86_64
php70u-common-7.0.19-1.ius.centos7.x86_64
php70-php-xml-7.0.20-1.el7.remi.x86_64
php70-php-pecl-xmldiff-1.1.2-6.el7.remi.x86_64
php70-php-tidy-7.0.20-1.el7.remi.x86_64
php70-php-common-7.0.20-1.el7.remi.x86_64
php70-php-xmlrpc-7.0.20-1.el7.remi.x86_64
php70-php-pecl-json-post-1.0.1-3.el7.remi.x86_64
php70u-mysqlnd-7.0.19-1.ius.centos7.x86_64
php70-php-pecl-apcu-bc-1.0.3-1.el7.remi.x86_64
php70-php-pspell-7.0.20-1.el7.remi.x86_64
php70-php-gd-7.0.20-1.el7.remi.x86_64
php70u-pdo-7.0.19-1.ius.centos7.x86_64
php70-php-mbstring-7.0.20-1.el7.remi.x86_64
php70u-cli-7.0.19-1.ius.centos7.x86_64
php70-php-soap-7.0.20-1.el7.remi.x86_64
php70-php-pecl-apcu-5.1.8-1.el7.remi.x86_64
php70-php-pecl-imagick-3.4.3-1.el7.remi.x86_64
php70-php-devel-7.0.20-1.el7.remi.x86_64
php70-php-pear-1.10.4-2.el7.remi.noarch谁能给我指明正确的方向?我该怎么做“核武器”然后重新开始?或者需要更多的信息来解决
谢谢
发布于 2017-06-19 08:24:43
您已经安装了2个PHP堆栈,这显然并不需要。
对于Remi的存储库使用,我建议您只需遵循向导说明即可。
因此,在您的情况下,您需要来自remi的php 70-php-mcrypt(或IUS情况下的php70u-mcrpypt,如果从“remi-php 70”中选择“单一版本”,则需要php-mycrypt )。
顺便说一下,关于mcrypt扩展,我建议您阅读:关于libmcrypt和php-mcrypt
https://serverfault.com/questions/856456
复制相似问题