0

尝试在 CentOS 6 上安装 mcrypt。

在阅读其他帖子后,我了解到 yum 正在使用 epel 5,当它需要使用 epel 6 时。

所以,我删除了epel:

$ yum remove epel-release

并得到了epel 6:

$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
$ rpm -ivh epel-release-6-8.noarch.rpm

我的 epel.repo 文件如下所示:

name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

一切都指向 epel 6...对吗?

好吧,使用$ yum install php-mcrypt,会引发此错误:

Package: php-mcrypt-5.1.6-5.el5.x86_64 (epel)
Requires: php-api = 20041225

还在从 Epel 5 中撤出吗?发生了什么事......我怎样才能让 yum 使用 Epel 6 来代替?

4

0 回答 0