PHP安装:rpm还是编译? [英] PHP install : rpm or compile ?

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

问题描述

你好,

我的问题 :安装php的XSLT API。

1)我安装了Sablotron(使用rpm):ok

2)我读了下一步要编译的每个地方php

,带选项--with-xslt-sablot。由于我有php的rpm,我想知道我是否可以直接使用它并告诉rpm命令使用这个编译

选项。可能吗 ?如果没有,那没关系,因为我可以下载

php并编译,但我仍然想知道rpms是否可以用于这样的

选项。 br />
我的配置:redhat 8,php 4.2.2。

谢谢

Ghislain

解决方案

在文章< 3F ************** @ NOSPAM.freesurf.fr>中,Ghislain Benrais写道:

你好,
我的问题 :安装php的XSLT API。
1)我安装了Sablotron(带rpm):ok
2)我读了下一步编译php的每一个地方
选项 - -with-XSLT的sablot。因为我有php的rpm,我想知道我是否可以直接使用它并告诉rpm命令使用这个编译
选项。可能吗 ?如果没有,那就没问题,因为我可以下载
php并编译,但我仍然想知道rpms是否可以用于这样的
选项。
我的配置:redhat 8 ,php 4.2.2。




不是,除非你使用source-rpm。


另一种解决方案是获取4.2.2的源代码(来自php.net)

并编译它们--with-xslt-sablot = shared。然后在现有的php安装中使用

生成的module.so文件。


文章< 3F ******* *******@NOSPAM.freesurf.fr> ;,

Ghislain Benrais< gb ****** @ NOSPAM.freesurf.fr>写道:

你好,
我的问题 :安装php的XSLT API。
1)我安装了Sablotron(带rpm):ok
2)我读了下一步编译php的每一个地方
选项 - -with-XSLT的sablot。因为我有php的rpm,我想知道我是否可以直接使用它并告诉rpm命令使用这个编译
选项。可能吗 ?如果没有,那就没问题,因为我可以下载
php并编译,但我仍然想知道rpms是否可以用于这样的
选项。
我的配置:redhat 8 ,php 4.2.2。




RPM实际上并没有编译本地系统上的软件包,只是

a格式用于安装预制的二进制文件。我猜你自己已经安装了Sablotron RPM,所有的一切都已经为你完成了

自动更新你的主PHP以支持它(这个

是RPM [应该]为你处理的事情)。在其他

字样中,看看它是否正常工作(你可能需要重新启动Apache以获得

新设置)。


-Tim Miller


Tim Miller写道:

RPM实际上并没有编译本地系统上的软件包,它只是
一种安装预制二进制文件的格式。我猜是因为你有


不,你可以编译自己的rpm二进制包,然后安装

吧。 />
安装了一个Sablotron RPM,一切都已经为你完成了
自动更新你的主PHP以支持它(这是[应该]为你处理的RPM) 。换句话说,看看它是否正常工作(你可能需要重新启动Apache以获得新的设置)。

-Tim Miller



Hello,
My "problem" : install php''s XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php''s rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that''s no problem since I can download
php and compile, but still I''m wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.
Thanks
Ghislain

解决方案

In article <3F**************@NOSPAM.freesurf.fr>, Ghislain Benrais wrote:

Hello,
My "problem" : install php''s XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php''s rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that''s no problem since I can download
php and compile, but still I''m wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.



Not really, unless you use the source-rpm.

Another solution would be to get the sources for 4.2.2 (from php.net)
and compile them --with-xslt-sablot=shared. Then simply use the
resulting module.so file with your existing php installation.


In article <3F**************@NOSPAM.freesurf.fr>,
Ghislain Benrais <gb******@NOSPAM.freesurf.fr> wrote:

Hello,
My "problem" : install php''s XSLT API.
1)I installed Sablotron (with the rpm) : ok
2) I read every where that the next step was to compile php
with option --with-xslt-sablot. Since I have php''s rpm, I wonder if I
can use it directly and tell the rpm command to use this compilation
option. Is it possible ? If not, that''s no problem since I can download
php and compile, but still I''m wondering if rpms can be used with such
options.
My config : redhat 8, php 4.2.2.



RPM does not actually compile the packages on your local system, it''s just
a format for installing premade binaries. I''m guessing that since you''ve
installed a Sablotron RPM that everything has been done for you
automagically in terms of updating your main PHP to support it (this
is what RPM is [supposed] to handle for you). In other
words, see if it works as is (you probably need to restart Apache to get
the new set up).

-Tim Miller


Tim Miller wrote:

RPM does not actually compile the packages on your local system, it''s just
a format for installing premade binaries. I''m guessing that since you''ve
No, you can actually compile your own rpm binary packages, and then install
them.
installed a Sablotron RPM that everything has been done for you
automagically in terms of updating your main PHP to support it (this
is what RPM is [supposed] to handle for you). In other
words, see if it works as is (you probably need to restart Apache to get
the new set up).

-Tim Miller



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

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