所以我试图升级php版本。我已经删除了所有5.4的内容和依赖项。
我正在关注此链接https://webtatic.com/packages/php55/
我执行前两个步骤:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
然后:
[root@localhost ~]# yum install php55w php55w-opcache
它做了一些事情,然后我得到这些错误:
--> Finished Dependency Resolution
Error: Package: php55w-common-5.5.25-1.w6.x86_64 (webtatic)
Requires: libgmp.so.3()(64bit)
Error: Package: php55w-5.5.25-1.w6.x86_64 (webtatic)
Requires: httpd-mmn = 20051115
Installed: httpd-2.4.6-31.el7.centos.x86_64 (@base)
httpd-mmn = 20120211
httpd-mmn = 20120211x8664
httpd-mmn = 20120211-x86-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
发现mmn是模块幻数。而且似乎找不到libgmp.so.3,所以我的电脑要坏了。
谢谢
最佳答案
我在安装php70w时也遇到了这个问题。在我清理了百胜的缓存之后,它消失了:
sudo yum clean all
sudo yum install -y php70w