【问题标题】:Unable to install ownCloud on RHEL 7 : Dependencies issue?无法在 RHEL 7 上安装 ownCloud:依赖关系问题?
【发布时间】:2015-12-17 16:34:25
【问题描述】:

我在尝试从 yum install 安装 ownCloud 时遇到了问题(抱歉,控制台是法语的,我会翻译似乎对理解很重要的单词,所以它们并不是真正的英语):

[root@localhost ~]# yum install owncloud
Modules loaded : langpacks, product-id, search-disabled-repos,
                                : subscription-manager
Resolution of dependencies
--> Lancement de la transaction de test
---> Packet owncloud.noarch 0:8.2.1-1.1 will be installed
--> Treatment of dependence : owncloud-server = 8.2.1 for packet : owncloud-8.2.1-1.1.noarch
--> Treatment of dependence : owncloud-config-apache = 8.2.1 for packet : owncloud-8.2.1-1.1.noarch
--> Test transaction
---> Packet owncloud-config-apache.noarch 0:8.2.1-1.1 will be installed
---> Packet owncloud-server.noarch 0:8.2.1-1.1 will be installed
--> Treatment of dependence : php-ldap for packet : owncloud-server-8.2.1-1.1.noarch
--> Lancement de la transaction de test
---> Packet  php-ldap.x86_64 0:5.4.16-36.el7_1 sera installé
--> Treatment of dependence : php-common(x86-64) = 5.4.16-36.el7_1 pour le paquet : php-ldap-5.4.16-36.el7_1.x86_64
--> End of Resolution of dependencies
Erreur : Paquet : php-ldap-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)
             Needed : php-common(x86-64) = 5.4.16-36.el7_1
             Installed : php-common-5.4.41-1.el7.remi.x86_64 (@remi)
                 php-common(x86-64) = 5.4.41-1.el7.remi
             Available : php-common-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)
                 php-common(x86-64) = 5.4.16-21.el7
             Available : php-common-5.4.16-23.el7_0.x86_64 (rhel-7-server-rpms)
                 php-common(x86-64) = 5.4.16-23.el7_0
             Available : php-common-5.4.16-23.el7_0.1.x86_64 (rhel-7-server-rpms)
                 php-common(x86-64) = 5.4.16-23.el7_0.1
             Available : php-common-5.4.16-23.el7_0.3.x86_64 (rhel-7-server-rpms)
                 php-common(x86-64) = 5.4.16-23.el7_0.3
             Available : php-common-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)
                 php-common(x86-64) = 5.4.16-36.el7_1
             Available : php54w-common-5.4.45-2.w7.x86_64 (webtatic)
                 php-common(x86-64) = 5.4.45-2.w7
             Available : php55w-common-5.5.30-2.w7.x86_64 (webtatic)
                 php-common(x86-64) = 5.5.30-2.w7
             Available : php56w-common-5.6.14-2.w7.x86_64 (webtatic)
                 php-common(x86-64) = 5.6.14-2.w7
             Available : php56w-common-5.6.15-1.w7.x86_64 (webtatic)
                 php-common(x86-64) = 5.6.15-1.w7
             Available : php56w-common-5.6.16-1.w7.x86_64 (webtatic)
                 php-common(x86-64) = 5.6.16-1.w7
             Available : php70w-common-7.0.0-1.w7.x86_64 (webtatic)
                 php-common(x86-64) = 7.0.0-1.w7

yum can be configured to try to resolve such errors by temporarily enablingdisabled repos and searching for missing dependencies.To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf

我不明白为什么会出现需要 php-common(x86-64) = 5.4.16-36.el7_1 而我安装了 php-common-5.4.41-1.el7.remi.x86_64 (@remi) 的错误...

我尝试按照说明重新配置 yum,但问题是一样的。我按照 ownCloud 的教程在 RHEL 7 下安装(其中包含为 ownCloud 添加软件仓库的提示),问题是一样的(https://download.owncloud.org/download/repositories/stable/owncloud/)。

我想用yum,因为如果我手动安装,我必须手动更新它,而且很复杂......

感谢您的帮助。

【问题讨论】:

    标签: yum rhel owncloud rhel7


    【解决方案1】:

    您已从默认未启用的“remi”存储库安装 PHP。

    您必须启用它才能安装 php-ldap。

    yum --enablerepo=remi install php-ldap
    

    (注意:这将拉取最新版本,即 5.4.45)

    【讨论】:

    • 感谢您的帮助,它解决了我的问题!但我真的不明白为什么:如果我没记错的话,我使用 RHEL 的数据包管理器来安装 PHP。我应该只使用雷米存款还是必须删除它并只使用官方的?
    • EL-7 有 5.4.16,它将一直维护到发行版 EOL。 remirepo 有最新的 5.4.45,现在是 EOL(安全修复将在 remirepo 中反向移植一段时间)。两者都应该工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-05
    • 1970-01-01
    • 1970-01-01
    • 2021-06-30
    • 2016-02-17
    • 2021-03-02
    相关资源
    最近更新 更多