Yum php-yaml 安装问题

Yum php-yaml 安装问题

我们遇到了一个问题ansible 剧本使用流浪汉- 以前 php-yaml 安装正常。

然后,我们的 PHP 仓库出现了问题:

[vagrant@localhost ~]$ sudo yum install php-yaml
...
Error: Package: php-pecl-yaml-1.1.1-5.el6.x86_64 (epel)
       Requires: php(api) = 20090626
       Installed: php-common-5.5.16-1.el6.remi.2.x86_64 (@remi-php55)
           php(api) = 20121113-64
       Available: php-common-5.3.3-26.el6.x86_64 (base)
           php(api) = 20090626
       Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
           php(api) = 20090626
       Available: php-common-5.3.3-27.el6_5.1.x86_64 (updates)
           php(api) = 20090626
       Available: php-common-5.3.3-27.el6_5.2.x86_64 (updates)
           php(api) = 20090626
       Available: php-common-5.4.33-1.el6.remi.x86_64 (remi)
           php(api) = 20100412-x86-64
       Available: php-common-5.4.33-2.el6.remi.x86_64 (remi)
           php(api) = 20100412-x86-64
       Available: php-common-5.5.17-1.el6.remi.x86_64 (remi-php55)
           php(api) = 20121113-64
       Available: php-common-5.5.17-2.el6.remi.x86_64 (remi-php55)
           php(api) = 20121113-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

它可能不是最漂亮的 - 但这是我们的解决方案:

yum install libyaml
yum --disablerepo=epel install php-pecl-yaml

我们需要 epel 来获取 libyaml,但我们不想使用 php-pecl-yaml

这使我们能够继续使用php 扩展代替php55-php-扩展

相关内容