无法在RHEL 7上安装ownCloud:依赖性问题?

时间:2015-12-17 16:34:25

标签: yum rhel owncloud rhel7

我在尝试从yum install安装ownCloud时遇到问题(对不起,控制台是法语,我会翻译对理解很重要的单词,所以它们不是真正的英文版本):< / p>

[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)已安装2015-12-17 17:10:44,454 | INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@75dda1ae: startup date [Thu Dec 17 17:10:44 CET 2015]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain 2015-12-17 17:10:45,916 | INFO | PListStore:[C:\apache-activemq-5.13.0\bin\win64\..\..\data\localhost\tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | WrapperSimpleAppMain 2015-12-17 17:10:45,951 | INFO | Using Persistence Adapter: JDBCPersistenceAdapter(org.apache.commons.dbcp2.BasicDataSource@1bae0625) | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain 2015-12-17 17:10:45,961 | WARN | Could not get JDBC connection: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb' | org.apache.activemq.store.jdbc.JDBCPersistenceAdapter | WrapperSimpleAppMain java.sql.SQLException: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb' at org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2161)[commons-dbcp2-2.1.1.jar:2.1.1] at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)[commons-dbcp2-2.1.1.jar:2.1.1] at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)[commons-dbcp2-2.1.1.jar:2.1.1] at org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:59)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:449)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:432)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:381)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.init(JDBCPersistenceAdapter.java:296)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.broker.LockableServiceSupport.preStart(LockableServiceSupport.java:89)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-client-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:664)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:653)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.start(BrokerService.java:617)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.13.0.jar:5.13.0] 2015-12-17 17:10:46,042 | INFO | No IOExceptionHandler registered, ignoring IO exception | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain java.io.IOException: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb' at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:45)[activemq-client-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:71)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.loadAdapter(JDBCPersistenceAdapter.java:449)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.java:432)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:381)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.init(JDBCPersistenceAdapter.java:296)[activemq-jdbc-store-5.13.0.jar:5.13.0] at org.apache.activemq.broker.LockableServiceSupport.preStart(LockableServiceSupport.java:89)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:54)[activemq-client-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:664)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:653)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.broker.BrokerService.start(BrokerService.java:617)[activemq-broker-5.13.0.jar:5.13.0] at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)[activemq-spring-5.13.0.jar:5.13.0] 2015-12-17 17:10:46,047 | ERROR | Failed to start Apache ActiveMQ ([localhost, null], java.io.IOException: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb') | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain 2015-12-17 17:10:46,052 | INFO | Apache ActiveMQ 5.13.0 (localhost, null) is shutting down | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain 2015-12-17 17:10:46,054 | INFO | Connector openwire stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain 2015-12-17 17:10:46,056 | INFO | Connector amqp stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain 2015-12-17 17:10:46,058 | INFO | Connector stomp stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain 2015-12-17 17:10:46,060 | INFO | Connector mqtt stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain 2015-12-17 17:10:46,062 | INFO | Connector ws stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain 2015-12-17 17:10:46,068 | INFO | PListStore:[C:\apache-activemq-5.13.0\bin\win64\..\..\data\localhost\tmp_storage] stopped | org.apache.activemq.store.kahadb.plist.PListStoreImpl | WrapperSimpleAppMain 2015-12-17 17:10:46,077 | INFO | Apache ActiveMQ 5.13.0 (localhost, null) uptime 0.151 seconds | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain 2015-12-17 17:10:46,080 | INFO | Apache ActiveMQ 5.13.0 (localhost, null) is shutdown | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain 2015-12-17 17:10:46,082 | INFO | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@75dda1ae: startup date [Thu Dec 17 17:10:44 CET 2015]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain 2015-12-17 17:10:46,087 | WARN | Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1@75dda1ae: startup date [Thu Dec 17 17:10:44 CET 2015]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357)[spring-context-4.1.8.RELEASE.jar:4.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:881)[spring-context-4.1.8.RELEASE.jar:4.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:840)[spring-context-4.1.8.RELEASE.jar:4.1.8.RELEASE] at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)[activemq-spring-5.13.0.jar:5.13.0] at java.lang.reflect.Method.invoke(Unknown Source)[:1.8.0_66] 2015-12-17 17:10:46,151 | WARN | Exception encountered during context initialization - cancelling refresh attempt | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot create JDBC driver of class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=activedb' at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1572)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE] ...

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

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

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

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

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

yum --enablerepo=remi install php-ldap

(注意:这将拉出最新版本5.4.45)