配置PHP时忘记了包含--with curl.如何在不中断其他扩展的情况下添加


Forgot to include --with-curl when configuring PHP. How to add without disrupting other extensions?

如果我从源代码编译PHP 5,发现其中忘记了一个--with-curl,我可以运行相同的./configure命令并在最后添加--with-curl吗?或者我可以只做./configure --with-curl,它会把它添加到已经安装的所有东西中吗?

您必须重新配置,然后重新编译。

您需要将其添加到旧配置的末尾,如

./configure --with-something1 --with-something2 --with-curl

您应该运行./configure(上一个命令+新添加)、makemake installmake clean

./configure不记得上次用来调用它的参数,尽管如果忘记了,可以从config.status中找出它们。

您需要运行正确的configure命令并使用make命令进行编译。如果您缺少有关autoconf的更多信息,请参阅http://www.gnu.org/software/autoconf/#introduction基本上/configure只设置构建,您可以使用它更改选项。