在CentOS 5.5上安装适用于php 5.3的ldap时出错

在CentOS 5.5上安装适用于php 5.3的ldap时出错,php,ldap,centos,Php,Ldap,Centos,在CentOS 5.5 错误消息如下: [root@localhost ~]# yum install php-ldap Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-ldap.i386 0:5

CentOS 5.5

错误消息如下:

[root@localhost ~]# yum install php-ldap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-ldap
--> Finished Dependency Resolution
php-ldap-5.1.6-27.el5_5.3.i386 from updates has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-ldap-5.1.6-27.el5_5.3.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-ldap-5.1.6-27.el5_5.3.i386 (updates)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

您需要先安装
yum install php common
install
yum install php53 ldap

或者尝试安装yum install php55w ldap。

尝试更好地格式化输出。还有,你试过这个建议吗?而且,在我使用CentOS的一点经验中,有时
yum clean all
也会起作用。我尝试了yum install php-common。但是系统消息show ready installed.ty
rpm-qa | grep php
,以查看安装了哪个版本。可能yum update all helpsphp common安装成功,但yum install php ldap仍然存在错误。php-5.3.6-1.w5 php-common-5.3.6-1.w5 php-pdo-5.3.6-1.w5 php-odbc-5.3.6-1.w5 php-cli-5.3.6-1.w5 php-mysql-5.3.6-1.w5 php-devel-5.3.6-1.w5正如您的错误所言,php comon是php common=5.1.6-27.el5_5.3版本所必需的。您当前安装的版本是
5.3.6-27
,这将是一个巨大的降级。。您是否尝试安装
php53 ldap