我运行yum install php-devel ,它返回这个。 通常我只是用–skip-broken运行它,但是当我这样做的时候,它仍然没有办法。
Available: php-common-5.3.3-22.el6.x86_64 (rhel-x86_64-server-6) php-common(x86-64) = 5.3.3-22.el6 Available: php-common-5.3.3-23.el6_4.x86_64 (rhel-x86_64-server-6) php-common(x86-64) = 5.3.3-23.el6_4 Available: php-common-5.3.3-26.el6.x86_64 (rhel-x86_64-server-6) php-common(x86-64) = 5.3.3-26.el6 Available: php54w-common-5.4.29-2.w6.x86_64 (webtatic) php-common(x86-64) = 5.4.29-2.w6 Available: php54w-common-5.4.30-1.w6.x86_64 (webtatic) php-common(x86-64) = 5.4.30-1.w6 Available: php55w-common-5.5.13-2.w6.x86_64 (webtatic) php-common(x86-64) = 5.5.13-2.w6 Installing: php55w-common-5.5.14-1.w6.x86_64 (webtatic) php-common(x86-64) = 5.5.14-1.w6 You could try using --skip-broken to work around the problem
当使用--skip-broken运行时,它会在最后返回:
由于依赖性问题跳过了包:
autoconf-2.63-5.1.el6.noarch from rhel-x86_64-server-6 automake-1.11.1-4.el6.noarch from rhel-x86_64-server-6 pcre-devel-7.8-6.el6.x86_64 from rhel-x86_64-server-6 php-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php-cli-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php-common-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php-mysql-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php-pdo-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php-soap-5.3.3-27.el6_5.1.x86_64 from rhel-x86_64-server-6 php55w-cli-5.5.14-1.w6.x86_64 from webtatic php55w-common-5.5.14-1.w6.x86_64 from webtatic php55w-devel-5.5.14-1.w6.x86_64 from webtatic
这个问题已经出现了一些其他类似的命令时,安装有关的PHP,除了我刚刚没有他们。
我需要安装这个我想要做的事情。 我记得升级到PHP 5.4,我们的整个基础设施因为需要PHP 5.3而下降了,所以我尽可能快地降级以使所有事情都恢复运行,这可能会导致这个问题。
如果您有任何想法,为什么会发生这种情况,以及如何在PHP 5.3上继续使用系统上的软件包,请告诉我。
谢谢。
在这一点上最简单的事情 – 摆脱webtatic包。
yum --disablerepo=webtatic distro-sync
应该让你在正确的轨道上为初学者。
编辑:如何永久禁用webtatic:
sed -i '/\[webtatic\]/,/^$/ s/\(enabled=\)1/\10/p' $(grep -rlF [webtatic] /etc/yum.repos.d/*.repo)
然后呢
yum distro-sync
并package-cleanup --orphans结果package-cleanup --orphans (或yum list extras )来确定可能需要删除的其他包。
我也有同样的问题和解决scheme如下:
yum search php54等,基于您的PHP版本 yum install php53_devel.x86_64或yum install php54w.x86_64等 以下SO问题帮助我: https : //stackoverflow.com/questions/12325109/cant-install-php-devel-on-centos
通常我只是用–skip-broken运行它
所以你的系统现在可能处于一个完全混乱的状态。 这个额外的'webtatic'回购你可能与此有关。 我会在这一点擦拭盒子,从头开始。