无法安装mbstring php …缺少libgmp.so.3
发布时间:2020-12-13 22:25:24 所属栏目:PHP教程 来源:网络整理
导读:我只是在RHEL上安装php 5.4.16,但我也想安装mbstring.当我尝试通过yum安装它时……我在libgmp.so.3上遇到依赖错误 [root@ip-108-205-20-169 ec2-user]# yum install php-mbstringLoaded plugins: amazon-id,rhui-lb,search-disabled-reposResolving Dependen
我只是在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,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 解决方法
您正在尝试为php7安装mbstring,但您当前安装的php版本是5.4.你可以删除php-common-5.4.16-36.el7_1.x86_64而不是安装php70w-common-7.0.2-1.w6.x86_64,或者你可以找到php5.4的mbstring如果你不想升级到7.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |