我怎么运行php编译? [英] How was my running php compiled?

查看:108
本文介绍了我怎么运行php编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从源代码编译一个新的PHP实例(5.4.0),并希望保持与已经从发行版Ubuntu-11.10安装的PHP(5.3.6-13ubuntu3.6)的兼容性。 。也就是说,我想使用与安装的PHP相同的指令运行 ./ configure



看到由 phpinfo()输出的 ./ configure 命令,但这次,令我感到惊讶的是,它没有提供。 / p>

你知道任何阻止 phpinfo 输出编译配置的标志吗?或者,



您知道其他任何方式来获取PHP的编译方式吗?



解决方案

应该有一个脚本 php-config 您可以在ubuntu上安装以获取用于php的配置参数。

  sudo apt-get install php5-dev 
php-config --configure-options


I'm trying to compile a new instance of PHP (5.4.0) from the source code and want to keep compatibility with the one (PHP 5.3.6-13ubuntu3.6) already installed from the distro, Ubuntu-11.10. That is, I want to run ./configure with the same directives as the installed PHP.

I always could see the ./configure command outputted by phpinfo() but this time, for my surprise, it's not provided.

Do you know of any flag that prevent phpinfo of outputting the compile configuration? Or,

Do you know of any other way to get how PHP was compiled?

Many thanks in advanced.

解决方案

There should be a script php-config you can install on ubuntu to get the configure parameters used for php.

sudo apt-get install php5-dev
php-config  --configure-options

这篇关于我怎么运行php编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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