在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-jsonphp-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 

我该如何解决? 谢谢

我认为更简单的解决scheme是添加两个不同的回购站,然后运行php5.x和php7.x。 本地安装会使事情复杂化。 我有两个configuration在我的系统(remi-php54.repo和remi-php72.repo)的回购协议。 你可以在这里find他们: http : //rpms.remirepo.net/enterprise/ 。