我在我的remi.repo文件中启用了PHP 5.6 ,其他部分都没有启用 ,唯一启用的其他部分是[remi]本身。
[remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi [remi-php55] ... enabled=0 ... [remi-php56] name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 6 - $basearch #baseurl=http://rpms.famillecollet.com/enterprise/6/php56/$basearch/ mirrorlist=http://rpms.famillecollet.com/enterprise/6/php56/mirror # WARNING: If you enable this repository, you must also enable "remi" enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
当我运行yum install php ,出现一个错误,说我的httpd-mmn版本是错误的,但是它需要的版本是旧版本。
Error: Package: php-5.6.7-1.el6.remi.x86_64 (remi-php56) Requires: httpd-mmn = 20051115 Installed: httpd-2.4.6-19.el7.centos.x86_64 (@updates) httpd-mmn = 20120211 httpd-mmn = 20120211x8664 httpd-mmn = 20120211-x86-64 Available: httpd-2.4.6-17.el7.centos.1.x86_64 (base) httpd-mmn = 20120211x8664 httpd-mmn = 20120211-x86-64 httpd-mmn = 20120211 Available: httpd-2.4.6-18.el7.centos.x86_64 (updates) httpd-mmn = 20120211x8664 httpd-mmn = 20120211-x86-64 httpd-mmn = 20120211
我觉得这很奇怪,因为这个过程在我更新的最后一个服务器上工作。
这是我的版本的remi.repo中的错误?
正如它特别告诉你的那样:
# WARNING: If you enable this repository, you must also enable "remi"
您还安装了EL6的remi存储库 ,但您实际上正在运行EL7。 您还需要通过使用EL7回购来更正此问题。 最简单的方法是为EL7安装适当的remi-release RPM 。