RHEL 6 上 php-json 的循环依赖

RHEL 6 上 php-json 的循环依赖

我正在尝试在 RHEL6 上安装 php7。无法向 RHN 添加备用频道,因此尝试从 remi 存储库下载所有软件包,然后运行以下命令:

[root@MYSERVER php-packages]# yum --nogpgcheck localinstall php-7.0.23-2.el6.remi.x86_64.rpm php-ldap-7.0.23-2.el6.remi.x86_64.rpm php-soap-7.0.23-2.el6.remi.x86_64.rpm php-cli-7.0.23-2.el6.remi.x86_64.rpm php-odbc-7.0.23-2.el6.remi.x86_64.rpm  php-xml-7.0.23-2.el6.remi.x86_64.rpm  php-common-7.0.23-2.el6.remi.x86_64.rpm php-pdo-7.0.23-2.el6.remi.x86_64.rpm php-xmlrpc-7.0.23-2.el6.remi.x86_64.rpm php-gd-7.0.23-2.el6.remi.x86_64.rpm  php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el6.remi.7.0.x86_64.rpm   php-pgsql-7.0.23-2.el6.remi.x86_64.rpm php-json-7.0.23-2.el6.remi.x86_64.rpm

输出显示php-json需要php-common,但是我已经指定php-json要安装

Loaded plugins: product-id, refresh-packagekit, rhnplugin, search-disabled-repos, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining php-7.0.23-2.el6.remi.x86_64.rpm: php-7.0.23-2.el6.remi.x86_64
Marking php-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-ldap-7.0.23-2.el6.remi.x86_64.rpm: php-ldap-7.0.23-2.el6.remi.x86_64
Marking php-ldap-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-soap-7.0.23-2.el6.remi.x86_64.rpm: php-soap-7.0.23-2.el6.remi.x86_64
Marking php-soap-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-cli-7.0.23-2.el6.remi.x86_64.rpm: php-cli-7.0.23-2.el6.remi.x86_64
Marking php-cli-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-odbc-7.0.23-2.el6.remi.x86_64.rpm: php-odbc-7.0.23-2.el6.remi.x86_64
Marking php-odbc-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-xml-7.0.23-2.el6.remi.x86_64.rpm: php-xml-7.0.23-2.el6.remi.x86_64
Marking php-xml-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-common-7.0.23-2.el6.remi.x86_64.rpm: php-common-7.0.23-2.el6.remi.x86_64
Marking php-common-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-pdo-7.0.23-2.el6.remi.x86_64.rpm: php-pdo-7.0.23-2.el6.remi.x86_64
Marking php-pdo-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-xmlrpc-7.0.23-2.el6.remi.x86_64.rpm: php-xmlrpc-7.0.23-2.el6.remi.x86_64
Marking php-xmlrpc-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-gd-7.0.23-2.el6.remi.x86_64.rpm: php-gd-7.0.23-2.el6.remi.x86_64
Marking php-gd-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el6.remi.7.0.x86_64.rpm: php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el6.remi.7.0.x86_64
Marking php-pecl-memcache-3.0.9-0.7.20161124gitdf7735e.el6.remi.7.0.x86_64.rpm to be installed
Examining php-pgsql-7.0.23-2.el6.remi.x86_64.rpm: php-pgsql-7.0.23-2.el6.remi.x86_64
Marking php-pgsql-7.0.23-2.el6.remi.x86_64.rpm to be installed
Examining php-json-7.0.23-2.el6.remi.x86_64.rpm: php-json-7.0.23-2.el6.remi.x86_64
Marking php-json-7.0.23-2.el6.remi.x86_64.rpm to be installed
Package php-json is obsoleted by php-common, trying to install php-common-5.3.3-49.el6.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-cli.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-common.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-common.x86_64 0:7.0.23-2.el6.remi will be installed
--> Processing Dependency: php-json(x86-64) = 7.0.23-2.el6.remi for package: php-common-7.0.23-2.el6.remi.x86_64
---> Package php-gd.x86_64 0:7.0.23-2.el6.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-7.0.23-2.el6.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-7.0.23-2.el6.remi.x86_64
---> Package php-ldap.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-odbc.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-pdo.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-pecl-memcache.x86_64 0:3.0.9-0.7.20161124gitdf7735e.el6.remi.7.0 will be installed
---> Package php-pgsql.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-soap.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-xml.x86_64 0:7.0.23-2.el6.remi will be installed
---> Package php-xmlrpc.x86_64 0:7.0.23-2.el6.remi will be installed
--> Finished Dependency Resolution
Error: Package: php-common-7.0.23-2.el6.remi.x86_64 (/php-common-7.0.23-2.el6.remi.x86_64)
           Requires: php-json(x86-64) = 7.0.23-2.el6.remi
Error: Package: php-gd-7.0.23-2.el6.remi.x86_64 (/php-gd-7.0.23-2.el6.remi.x86_64)
           Requires: libgd.so.3()(64bit)
Error: Package: php-gd-7.0.23-2.el6.remi.x86_64 (/php-gd-7.0.23-2.el6.remi.x86_64)
           Requires: gd-last(x86-64) >= 2.1.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我该如何解决这个问题?谢谢

答案1

我认为更简单的解决方案是添加两个不同的 repos,然后同时运行 php5.x 和 php7.x。本地安装会使事情变得复杂。我的系统中配置了两个 repos(remi-php54.repo 和 remi-php72.repo)。您可以在此处找到它们:http://rpms.remirepo.net/enterprise/

相关内容