![是否可以在 Centos Kloxo 安装上将 PHP 升级到 5.3?](https://linux22.com/image/534702/%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%9C%A8%20Centos%20Kloxo%20%E5%AE%89%E8%A3%85%E4%B8%8A%E5%B0%86%20PHP%20%E5%8D%87%E7%BA%A7%E5%88%B0%205.3%EF%BC%9F.png)
我有一个运行 Centos 和 Kloxo 的 VPS,我想知道如何将 PHP 升级到5.3
- 它目前正在运行5.2.6
。
当我尝试执行 yum 更新时出现以下错误:
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libpq.so.4 for package: lxphp
---> Package postgresql-libs.i386 0:8.3.7-umask.7 set to be updated
--> Finished Dependency Resolution
lxphp-5.2.1-400.i386 from installed has depsolving problems
--> Missing Dependency: libpq.so.4 is needed by package lxphp-5.2.1-400.i386 (installed)
Error: Missing Dependency: libpq.so.4 is needed by package lxphp-5.2.1-400.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
任何帮助将不胜感激。
答案1
您可以使用 yum repo 中的 php53
Centos5 有 PHP 5.3.3 可用,
删除当前的 php
如果你通过 yum 安装,你也可以通过这种方式删除它
yum 删除 php
yum 删除 php-common
然后执行“yum install php53”
希望依赖项能够正确解决。您可能需要删除更多内容,但 yum 会告诉您。