【问题标题】:How do I install php-mbstring with missing dependency php-common which is already installed?如何安装缺少已安装依赖项 php-common 的 php-mbstring?
【发布时间】:2014-10-18 21:49:17
【问题描述】:

如何让 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 吗(不确定这里的“它”是什么)?

已经试过了:

--skip-broken

--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

【问题讨论】:

  • 您将无法将 32 位插件安装到 64 位 php 中,例如。你的php核心包是什么版本的?
  • 可以升级到 PHP 5.4 或 5.5 吗?如果是这样,我有一条清晰的道路给你。否则,要知道 PHP 5.1 已经 EOL 多年了。

标签: php linux apache centos mbstring


【解决方案1】:

php-mbstring 直到 php 5.3 才被支持。您需要先将PHP升级到5.3,然后才能安装mbstring。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-30
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 2020-05-28
    • 2017-07-10
    相关资源
    最近更新 更多