0

我在尝试从 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,因为如果我手动安装它,我必须手动更新它,而且它很复杂......

谢谢您的帮助。

4

1 回答 1

1

您已经从默认情况下未启用的“remi”存储库安装了 PHP。

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

yum --enablerepo=remi install php-ldap

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

于 2015-12-17T18:16:01.997 回答