我有一个专用的服务器上Kimsufi 。 我正尝试使用本指南在CentOS 6.7上将PHP 5.3更新到PHP 5.5,但不幸的是我得到以下错误:
Error: Package: php-mysql-5.4.45-1.el6.remi.x86_64 (remi) Requires: php-pdo(x86-64) = 5.4.45-1.el6.remi Removing: php-pdo-5.3.3-27.el6.2.x86_64 (@LocalRepo) php-pdo(x86-64) = 5.3.3-27.el6.2 Updated By: php-pdo-5.5.29-1.el6.remi.x86_64 (remi-php55) php-pdo(x86-64) = 5.5.29-1.el6.remi Available: php-pdo-5.4.44-1.el6.remi.x86_64 (remi) php-pdo(x86-64) = 5.4.44-1.el6.remi Available: php-pdo-5.4.45-1.el6.remi.x86_64 (remi) php-pdo(x86-64) = 5.4.45-1.el6.remi Available: php-pdo-5.5.28-1.el6.remi.x86_64 (remi-php55) php-pdo(x86-64) = 5.5.28-1.el6.remi Available: php54w-pdo-5.4.44-1.w6.x86_64 (webtatic) php-pdo(x86-64) = 5.4.44-1.w6 Available: php55w-pdo-5.5.28-1.w6.x86_64 (webtatic) php-pdo(x86-64) = 5.5.28-1.w6 Available: php56w-pdo-5.6.12-1.w6.x86_64 (webtatic) php-pdo(x86-64) = 5.6.12-1.w6 Error: Package: php-pecl-apc-3.1.9-2.el6.x86_64 (@base) Requires: php(api) = 20090626 Removing: php-common-5.3.3-27.el6.2.x86_64 (@LocalRepo) php(api) = 20090626 Updated By: php-common-5.5.29-1.el6.remi.x86_64 (remi-php55) php(api) = 20121113-64 Available: php-common-5.4.44-1.el6.remi.x86_64 (remi) php(api) = 20100412-x86-64 Available: php-common-5.4.45-1.el6.remi.x86_64 (remi) php(api) = 20100412-x86-64 Available: php-common-5.5.28-1.el6.remi.x86_64 (remi-php55) php(api) = 20121113-64 Available: php54w-common-5.4.44-1.w6.x86_64 (webtatic) php(api) = 20100412-64 Available: php55w-common-5.5.28-1.w6.x86_64 (webtatic) php(api) = 20121113-64 Installing: php56w-common-5.6.12-1.w6.x86_64 (webtatic) php(api) = 20131106-64 Error: Package: php-pecl-apc-3.1.9-2.el6.x86_64 (@base) Requires: php(zend-abi) = 20090626 Removing: php-common-5.3.3-27.el6.2.x86_64 (@LocalRepo) php(zend-abi) = 20090626 Updated By: php-common-5.5.29-1.el6.remi.x86_64 (remi-php55) php(zend-abi) = 20121212-64 Available: php-common-5.4.44-1.el6.remi.x86_64 (remi) php(zend-abi) = 20100525-x86-64 Available: php-common-5.4.45-1.el6.remi.x86_64 (remi) php(zend-abi) = 20100525-x86-64 Available: php-common-5.5.28-1.el6.remi.x86_64 (remi-php55) php(zend-abi) = 20121212-64 Available: php54w-common-5.4.44-1.w6.x86_64 (webtatic) php(zend-abi) = 20100525-64 Available: php55w-common-5.5.28-1.w6.x86_64 (webtatic) php(zend-abi) = 20121212-64 Installing: php56w-common-5.6.12-1.w6.x86_64 (webtatic) php(zend-abi) = 20131226-64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
他们究竟是什么意思,我该如何解决这些问题?
您有一个名为webtatic的冲突存储库webtatic安装。 删除这个回购(和任何从它安装的软件包)。
完成此操作后,运行yum distro-sync将系统yum distro-sync到存储库中的最新软件包版本。
此时,您可以安装任何您需要的附加软件包。
PHP 5.5没有APC扩展,您应该切换到Zend Opcache。
我正在提交一个Webtatic答案,因为我是它的维护者,我不喜欢缺lessRemi存储库旧版本RPM的封装,以及SCL新版本的rpms。 前者的方式也会使这个问题更清楚。
正如你已经安装了Webtatic仓库,你可以运行:
yum install yum-plugin-replace yum replace php-common --replace-with=php55w-common yum install php55w-opcache
这也可以解决另一种方式,如果想要坚持使用Remi的php55回购:
yum remove php-pecl-apc yum update php* yum install php-opcache