我应该安装php还是编译它? [英] Should I yum install php or compile it?

查看:87
本文介绍了我应该安装php还是编译它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



对于那些戴红帽子或软呢帽的人,你是否安装了php或者你需要编译它们吗?

你编译它吗?


For those of you with red hat or fedora, do you yum install php or do
you compile it?

推荐答案

7月11日下午3:45,mrbog< dterr ... @ hotmail.comwrote:
On Jul 11, 3:45 pm, mrbog <dterr...@hotmail.comwrote:

对于那些戴红帽子或软呢帽的人,你是否安装了php或者你编译它们是否需要?b $ b?
For those of you with red hat or fedora, do you yum install php or do
you compile it?



编译它。

Compile it.


mrbog写道:
mrbog wrote:

对于那些戴着红帽子或软呢帽的人,你是否安装了php或者你需要编译它们吗?

你编译它吗?
For those of you with red hat or fedora, do you yum install php or do
you compile it?



从包中安装它会给你一个相当标准的PHP

安装。对于我的发行版,甚至可以使用包添加扩展名

。但是,如果你想要最新版本,

的扩展名没有包,或者其他一些没有附带的选项,你必须自己编译PHP 。编译PHP相当简单,但需要几分钟。安装

扩展程序的所有库可能很难。


在某些情况下,最好自己制作一个包,以便

包装系统知道安装了PHP并且没有使用

依赖项给你带来麻烦。


Sjoerd

Installing it from a package gives you a fairly standard PHP
installation. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself. Compiling PHP is fairly
easy, but takes several minutes. Installing all the libraries for the
extensions can be hard.

In some cases, it is a good idea to make your own package, so that the
packaging system knows PHP is installed and does not bug you with
dependencies.

Sjoerd


Sjoerd写道:
Sjoerd wrote:

从包中安装它会给你一个相当标准的PHP

安装。对于我的发行版,甚至可以使用包添加扩展名

。但是,如果你想要最新版本,

的扩展名没有包,或者其他一些没有附带的选项,你必须自己编译PHP 。
Installing it from a package gives you a fairly standard PHP
installation. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself.



使用你的软件包管理器安装PHP并不妨碍你自己编译额外的模块。


我的主要开发机器通过Mandriva的URPMI工具安装了PHP,

但是我自己编译了pdo和pdo_pgsql扩展。


-

Toby A Inkster BSc(荣誉)ARCS

[极客HTML / SQL / Perl / PHP / Python / Apache / Linux]

[操作系统:Linux 2.6.12-12mdksmp,上21天,13:34。]


demiblog 0.2.0发布
http://tobyinkster.co.uk/blog/2007/0。 ..emiblog-0.2.0 /


这篇关于我应该安装php还是编译它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆