如何在openSuse上升级php?

我目前正在使用PHP 5.3.8运行openSuse 12.1,并想升级到5.4。 我该怎么做? 我习惯于用yast安装软件包。

如果没有包,你可以编译你自己的PHP

1. Download php, extract it and cd into the directory 2. ./configure - add options you need and do not forget --with-apxs2. It will compile the module for apache. (You can check the currunt options used to compile php in phpinfo()). You can see the help and options with ./configure --help 3. make - this will compile the php 4. make install - this will install the php 

我使用的是OpenSUSE 12.2,它可以在这个自定义存储库中与SLE软件包很好地协作。 添加存储库之后,您可以将yast软件pipe理器中的php软件包的版本切换为5.4.9 ….

您可能还需要libpcre0依赖关系,它不再位于opensuse 12.2仓库中,但您可以从这里获取它。

您可以使用wget下载它,使用rpm -i进行安装。

这个解决scheme是干净的,可以在五分钟内完成,它的工作完美..