2011-04-29 187 views
1

錯誤在如下CentOS 5.5錯誤CentOS上安裝PHP 5.3 LDAP 5.5

錯誤消息安裝ldapPHP 5.3

[[email protected] ~]# 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. 
+1

嘗試格式化輸出。另外,你有沒有嘗試過這個建議?而且,在我對CentOS的一點經驗上,有時候「乾淨利落」也有訣竅。 – 2011-04-29 10:05:41

回答

1

您需要安裝yum install php-common第一

+0

我試過yum安裝php-common.but系統消息顯示已經安裝。 – user730815 2011-04-30 01:16:09

+0

ty'rpm -qa | grep php'來查看安裝了哪個版本。也許yum更新全部幫助 – Flask 2011-04-30 10:30:46

+0

php-common安裝成功,但yum安裝php-ldap仍然錯誤。 – user730815 2011-05-02 03:08:48

1

或者嘗試安裝yum install php55w-ldap。