Home  >  Article  >  Backend Development  >  linux - 在Liunx中安装PHP5.4时失败

linux - 在Liunx中安装PHP5.4时失败

WBOY
WBOYOriginal
2016-06-06 20:35:06928browse

本人刚开始接触服务器所以不是很懂
公司的服务器的版本是

<code>html</code><code>Linux version 2.6.32-431.20.3.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Thu Jun 19 21:14:45 UTC 2014
</code>

google了一下更新PHP的方法用了

<code>yum install php54w  
</code>

但是最后提示的错误是

<code>Error: php54w-common conflicts with php-common-5.3.3-40.el6_6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
</code>

按照提示执行了--skip-broken等 没有起作用
又google了一下发现别人说用

<code>yum remove php-common
</code>

但是google不到php-common的作用 所以不敢就这么移除了
问下各位

1.yum install php54w可以安装到php5.4吗

2.有人用过remove php-common 解决这个问题吗
3.php-common的作用是什么
4.升级php5.4之后对mysql的版本有要求吗?

回复内容:

本人刚开始接触服务器所以不是很懂
公司的服务器的版本是

<code>html</code><code>Linux version 2.6.32-431.20.3.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Thu Jun 19 21:14:45 UTC 2014
</code>

google了一下更新PHP的方法用了

<code>yum install php54w  
</code>

但是最后提示的错误是

<code>Error: php54w-common conflicts with php-common-5.3.3-40.el6_6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
</code>

按照提示执行了--skip-broken等 没有起作用
又google了一下发现别人说用

<code>yum remove php-common
</code>

但是google不到php-common的作用 所以不敢就这么移除了
问下各位

1.yum install php54w可以安装到php5.4吗

2.有人用过remove php-common 解决这个问题吗
3.php-common的作用是什么
4.升级php5.4之后对mysql的版本有要求吗?

问题解决

<code><br>yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn