【问题标题】:Error Package to install apache and php5 on RHEL 6.3在 RHEL 6.3 上安装 apache 和 php5 的错误包
【发布时间】:2015-11-13 08:18:33
【问题描述】:

我正在尝试在 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

注册频道redhat一定要使用yum仓库吗? 可能是什么错误?

我添加EPEL和remi如下。

CentOS 6 和 Red Hat (RHEL) 6 上的 Remi 依赖关系

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

CentOS 6 和红帽 (RHEL) 6

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

感谢您的帮助。

【问题讨论】:

    标签: php apache rhel6


    【解决方案1】:

    此错误与 yum 试图拉取 el7 软件包(适用于 CentOS 7)有关,该软件包不适用于 CentOS 6

    检查您的 yum 配置以获取 remi-php55 存储库。

    另外请注意,“remi”存储库包目前是为 6.6(或 6.7)构建的,并且无法与旧版本(根据问题标题为 6.3)按预期工作,尤其是因为 openssl 更新。所以你还必须先更新到最新的 CentOS(yum 更新)

    【讨论】:

      猜你喜欢
      • 2016-12-02
      • 2014-04-14
      • 1970-01-01
      • 1970-01-01
      • 2013-06-05
      • 2014-03-23
      • 1970-01-01
      • 1970-01-01
      • 2012-12-01
      相关资源
      最近更新 更多