升级到 php 5.5 错误 Centos 7 Apache 2.4



所以我正在尝试升级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 的 centos,所以我快要坏我的电脑了。

谢谢

我在安装 php70w 时也遇到了这个问题。在我清理了百胜的缓存后,它消失了:

sudo yum clean all
sudo yum install -y php70w

我也遇到了这个问题。在我清理了yum的缓存后,它消失了:

sudo yum clean all
sudo yum install -y php55w

希望对您有所帮助

以下内容

对我将PHP从5.4.16升级到5.5.38(CentOS 7)有用:

yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi,remi-php55 update -y php*

要升级到 5.6.31,请改用:

yum --enablerepo=remi,remi-php56 update -y php*

同样适用于7.x(remi-php7x)

使用 EPEL7CentOS 7。要修复:

 #rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 
 #yum remove epel-release  
 #yum install epel-release 

最新更新