Centos6.9上通过yum、remi repo安装php71时出现pecl错误

Centos6.9上通过yum、remi repo安装php71时出现pecl错误

我遇到了类似这样的与包相关的错误。

错误:软件包:php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64

我猜想它与 pecl 的依赖性有关...但无法弄清楚。

我长期使用 php56。

有人能帮帮我吗?

这些是错误信息。

$ sudo yum install --enablerepo=remi,remi-php71 php
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php.x86_64 0:7.1.20-1.el6.remi will be an update
--> Processing Dependency: php-common(x86-64) = 7.1.20-1.el6.remi for package: php-7.1.20-1.el6.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 7.1.20-1.el6.remi for package: php-7.1.20-1.el6.remi.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.6.36-1.el6.remi will be updated
--> Processing Dependency: php-cli(x86-64) = 5.6.36-1.el6.remi for package: php-devel-5.6.36-1.el6.remi.x86_64
---> Package php-cli.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.6.36-1.el6.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-xdebug-2.4.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-zip-1.13.5-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.10-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-xdebug-2.4.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-zip-1.13.5-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.10-1.el6.remi.5.6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-xml-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-mbstring-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-intl-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-bcmath-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-opcache-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-pdo-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-process-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-mcrypt-5.6.36-1.el6.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.36-1.el6.remi for package: php-soap-5.6.36-1.el6.remi.x86_64
---> Package php-common.x86_64 0:7.1.20-1.el6.remi will be an update
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-bcmath.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.6.36-1.el6.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
---> Package php-devel.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-devel.x86_64 0:7.1.20-1.el6.remi will be obsoleting
---> Package php-intl.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-intl.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-json.x86_64 0:7.1.20-1.el6.remi will be obsoleting
---> Package php-mbstring.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-mbstring.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-mcrypt.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-mcrypt.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-opcache.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-opcache.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.6.36-1.el6.remi will be updated
--> Processing Dependency: php-pdo(x86-64) = 5.6.36-1.el6.remi for package: php-mysqlnd-5.6.36-1.el6.remi.x86_64
---> Package php-pdo.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el6.remi.5.6 will be obsoleted
---> Package php-pecl-jsonc-devel.x86_64 0:1.3.10-1.el6.remi.5.6 will be obsoleted
---> Package php-pecl-xdebug.x86_64 0:2.4.1-1.el6.remi.5.6 will be updated
---> Package php-pecl-xdebug.x86_64 0:2.6.1-1.el6.remi.7.1 will be an update
---> Package php-pecl-zip.x86_64 0:1.13.5-1.el6.remi.5.6 will be updated
---> Package php-pecl-zip.x86_64 0:1.15.3-1.el6.remi.7.1 will be an update
--> Processing Dependency: libzip5(x86-64) >= 1.5.1 for package: php-pecl-zip-1.15.3-1.el6.remi.7.1.x86_64
---> Package php-process.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-process.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-soap.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-soap.x86_64 0:7.1.20-1.el6.remi will be an update
---> Package php-xml.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-xml.x86_64 0:7.1.20-1.el6.remi will be an update
--> Running transaction check
---> Package libzip5.x86_64 0:1.2.0-1.el6.remi will be updated
---> Package libzip5.x86_64 0:1.5.1-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.6.36-1.el6.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64
---> Package php-mysqlnd.x86_64 0:5.6.36-1.el6.remi will be updated
---> Package php-mysqlnd.x86_64 0:7.1.20-1.el6.remi will be an update
--> Finished Dependency Resolution
Error: Package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(api) = 20131106-64
           Removing: php-common-5.6.36-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Updated By: php-common-7.1.20-1.el6.remi.x86_64 (remi-php71)
               php(api) = 20160303-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.4.45-14.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-7.1.19-1.el6.remi.x86_64 (remi-php71)
               php(api) = 20160303-64
Error: Package: php-pecl-xhprof-0.9.4-4.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Removing: php-common-5.6.36-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Updated By: php-common-7.1.20-1.el6.remi.x86_64 (remi-php71)
               php(zend-abi) = 20160303-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.4.45-14.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-7.1.19-1.el6.remi.x86_64 (remi-php71)
               php(zend-abi) = 20160303-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

专家与 PHP 7.x(已停用的项目)不兼容,因此 yum 会阻止您升级(设计使然)

如果可以删除此扩展,您将能够升级

yum remove php-pecl-xhprof

如果你真的需要它,你必须继续使用 PHP 5.x

查看兼容性列表

相关内容