[英]How do I install php-mbstring with missing dependency php-common which is already installed?
如何獲取php-mbstring來識別php-common?
我正在嘗試安裝php模塊php-mbstring,以便可以在PHP 5.2.10版上安裝phpMyAdmin。
有關我的機器的一些信息:
cpu:Intel(R)Xeon(R)CPU X5355 @ 2.66GHz,寬度:64位
操作系統:centOS
嘗試使用yum安裝時,由於依賴關系,安裝失敗。 如何已安裝所需的依賴項。 可能存在版本沖突? 最后的.386重要嗎? 另外,為什么我底部的日志中的錯誤描述缺少的dll,它是否不應該查找.so(不確定在這里是什么)?
已經嘗試過:
-跳過
--nodeps
更改.repo文件中的yum鏡像站點
使用下載的rpm進行安裝(我得到相同的錯誤:需要依賴)這是我的shell會話,包括yum安裝過程和我的apache錯誤日志:
[]$ yum install php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: yum.tamu.edu
* base: centos.expedientevirtual.com
* extras: dallas.tx.mirror.xygenhosting.com
* rpmforge: mirror.us.leaseweb.net
* updates: centos.expedientevirtual.com
Reducing CentOS-5 Testing to included packages only
Finished
Excluding Packages from RPMforge RPM Repository for Red Hat Enterprise 5 - dag
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.i386 0:5.1.6-44.el5_10 set to be updated
--> Processing Dependency: php-common = 5.1.6-44.el5_10 for package: php-mbstring
--> Finished Dependency Resolution
php-mbstring-5.1.6-44.el5_10.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-mbstring-5.1.6-44.el5_10.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-mbstring-5.1.6-44.el5_10.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
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: yum.tamu.edu
* base: centos.expedientevirtual.com
* extras: ftp.osuosl.org
* rpmforge: mirror.us.leaseweb.net
* updates: centos.expedientevirtual.com
Reducing CentOS-5 Testing to included packages only
Finished
Excluding Packages from RPMforge RPM Repository for Red Hat Enterprise 5 - dag
Finished
Setting up Install Process
Package matching php-common-5.1.6-44.el5_10.i386 already installed. Checking for update.
Nothing to do
[]$ yum update php-common
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: yum.tamu.edu
* base: centos.expedientevirtual.com
* extras: centos.mirror.lstn.net
* rpmforge: mirror.us.leaseweb.net
* updates: centos.expedientevirtual.com
Reducing CentOS-5 Testing to included packages only
Finished
Excluding Packages from RPMforge RPM Repository for Red Hat Enterprise 5 - dag
Finished
Setting up Update Process
No Packages marked for Update
[]$ grep -r "mbstring" /etc/httpd/logs
/etc/httpd/logs/error_log.1:PHP Warning:
PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mbstring.dll'
- /usr/lib/php/modules/php_mbstring.dll:
cannot open shared object file: No such file or directory in Unknown on line 0
直到php 5.3才支持php-mbstring。 您需要先將PHP升級到5.3,然后才能安裝mbstring。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.