在RHEL 6.3上安装apache和php5的错误包


Error Package to install apache and php5 on RHEL 6.3

我正在尝试在RHEL 6.3上安装Apache和PHP5,但我还没有成功。当我尝试添加Remi、EPEL存储库并运行

yum --enablerepo=remi,remi-php55 install php-pecl-apc php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

它交付了一个依赖失败:

Error: Package: libevent-last-2.0.22-1.el6.remi.x86_64 (remi)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-pdo-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-process-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: gd-last-2.1.1-2.el6.remi.x86_64 (remi)
           Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: php-mysqlnd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: libevent-last-2.0.22-1.el6.remi.x86_64 (remi)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: gd-last-2.1.1-2.el6.remi.x86_64 (remi)
           Requires: libXpm.so.4()(64bit)
Error: Package: php-pecl-apcu-4.0.7-2.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-gd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libXpm.so.4()(64bit)
Error: Package: php-mbstring-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-pecl-zip-1.12.5-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: php-pecl-mongo-1.6.10-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-xml-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libxml2.so.2(LIBXML2_2.9.0)(64bit)
Error: Package: php-pgsql-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-pecl-memcached-2.2.0-3.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libsasl2.so.3()(64bit)
Error: Package: php-xml-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-mcrypt-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-common-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-pecl-igbinary-1.2.1-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libpcre.so.1()(64bit)
Error: Package: php-gd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libt1.so.5()(64bit)
Error: Package: php-gd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-pecl-memcache-3.0.8-4.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-pecl-msgpack-0.5.6-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-gd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libt1.so.5()(64bit)
Error: Package: php-gd-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libpng15.so.15()(64bit)
Error: Package: php-pecl-memcache-3.0.8-4.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-pecl-msgpack-0.5.6-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: php-pecl-mongo-1.6.10-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libsasl2.so.3()(64bit)
Error: Package: php-cli-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
Error: Package: php-pgsql-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libpq.so.5()(64bit)
Error: Package: php-common-5.5.28-1.el7.remi.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: php-pecl-jsonc-1.3.7-1.el7.remi.5.5.x86_64 (remi-php55)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有必要使用yum存储库来注册通道redhat吗?错误可能是什么?

我将EPEL和remi添加如下。

Remi对CentOS 6和Red Hat (RHEL) 6的依赖

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

CentOS 6和Red Hat (RHEL) 6

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

谢谢你的帮助

这个错误与yum试图拉el7包(用于CentOS 7)有关,该包不是设计用于CentOS 6

检查remi-php55仓库的yum配置。

还要注意,"remi"存储库包目前是为6.6(或6.7)构建的,并且不能像预期的那样与旧版本(根据问题标题为6.3)一起工作,特别是因为openssl更新。所以你也必须开始更新到最新的CentOS (yum update)