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

时间:2015-08-19 20:57:32

标签: php apache rhel6

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

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

此错误与yum试图拉动el7程序包(适用于CentOS 7)有关,而这些程序并不适用于CentOS 6

检查你的yum配置是否有remi-php55存储库。

还要注意,而不是" remi"存储库包当前是为6.6(或6.7)构建的,并且无法按预期使用旧版本(6.3根据问题标题),特别是因为openssl更新。所以你还必须从最新的CentOS(yum update)

的更新开始