如何使用 scl-utils 安装 php55-php-mcrypt?

How to install php55-php-mcrypt with scl-utils?

众所周知,在基于 Fedora/RHEL/CentOS 7.x 的系统上 PHP 5.4.16 是受支持的版本。但是,对于我的应用程序,我需要 PHP 5.5,并且我从 RHEL 推荐的 scl-utils 存储库安装了它,如 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Developer_Guide/scl-utils.html

中所述

问题是我已经成功安装了除 php55-php-mcrypt:

以外的所有必需软件包
yum install php55-php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.sonic.net
 * epel: mirror.hmc.edu
 * extras: mirror.keystealth.org
 * updates: mirrors.easynews.com
No package php55-php-mcrypt available.
Error: Nothing to do

谁能推荐一种安装此软件包的方法?

切换到 Remi repo。它有 5.5、5.6 和 7.0 可用,只要 PHP 项目支持它们,它们就受支持。更好的是,他将这种支持分解为单独的存储库,因此您可以选择所需的存储库并安装 php-* RPM。当您准备好升级时,启用下一个存储库,然后 yum update.

RPM of PHP version 7.0.2 are available in remi-php70 repository for Fedora and Enterprise Linux (RHEL, CentOS).

RPM of PHP version 5.6.17 are available in remi repository for Fedora ≥ 21 and remi-php56 repository for Fedora and Enterprise Linux.

RPM of PHP version 5.5.31 are available in remi repository for Fedora 20 and in remi-php55 repository for Enterprise Linux.

解释为什么 "mcrypt" 是一个非常糟糕的主意,并且不是标准存储库的一部分:About libmcrypt and php-mcrypt

对于想要在 RHEL 上使用官方 RHSCL 软件包的人(也可以在 centos-scl 存储库中使用) ,您可以在社区存储库中找到其他软件包:

否则,是的,我的存储库是一个替代方案,请参阅 Configuration Wizard