我有一个运行 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 会告诉您。