【发布时间】:2016-02-09 21:00:26
【问题描述】:
我只是在 RHEL 上安装了 php 5.4.16,但我也想安装 mbstring。当我尝试通过 yum 安装它时...我在 libgmp.so.3 上遇到依赖错误
[root@ip-108-205-20-169 ec2-user]# yum install php-mbstring
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package php70w-mbstring.x86_64 0:7.0.2-1.w6 will be installed
--> Processing Dependency: php70w-common(x86-64) = 7.0.2-1.w6 for package: php70w-mbstring-7.0.2-1.w6.x86_64
--> Running transaction check
---> Package php70w-common.x86_64 0:7.0.2-1.w6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: php70w-common-7.0.2-1.w6.x86_64
--> Processing Conflict: php70w-common-7.0.2-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: Package: php70w-common-7.0.2-1.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
Error: php70w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
编辑:
尝试安装 5.4 mbstring,但仍然遇到与 libgmp.so.3 相关的相同错误
[root@ip-108-205-20-169 ec2-user]# yum install php54w-mbstring-5.4.45-2.w6.x86_64
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package php54w-mbstring.x86_64 0:5.4.45-2.w6 will be installed
--> Processing Dependency: php54w-common(x86-64) = 5.4.45-2.w6 for package: php54w-mbstring-5.4.45-2.w6.x86_64
--> Running transaction check
---> Package php54w-common.x86_64 0:5.4.45-2.w6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: php54w-common-5.4.45-2.w6.x86_64
--> Finished Dependency Resolution
Error: Package: php54w-common-5.4.45-2.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
在我的 /usr/lib64 目录中...我有一个 libgmp.so.10....但没有看到 .3
【问题讨论】:
-
您的 repo 设置不正确,正在尝试将 v7 库填充到 v5.4.16 安装中。