【发布时间】:2010-12-24 14:37:03
【问题描述】:
我想安装以下内容,但不确定应该在哪里添加 --enable-zip?除了将它放在 php.ini 中之外,还有更多的功能吗?
【问题讨论】:
标签: php linux macos configuration zip
我想安装以下内容,但不确定应该在哪里添加 --enable-zip?除了将它放在 php.ini 中之外,还有更多的功能吗?
【问题讨论】:
标签: php linux macos configuration zip
这种--enable-xyz,或--with-xyz被传递给configure脚本,这是从源代码编译PHP时的第一步(显然是在下载/解压源代码之后)。
有关更多信息,请参阅Installation on Unix System > Apache 2.x on Unix systems;尤其是给出configure 调用示例的部分:
10. Now, configure your PHP. This is where you customize your PHP
with various options, like which extensions will be enabled. Do a
./configure --help for a list of available options. In our example
we'll do a simple configure with Apache 2 and MySQL support. Your
path to apxs may differ, in fact, the binary may even be named apxs2 on
your system.
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
如果你想/需要用 --enable-zip option 重新编译 PHP,它会直接在这个命令中运行。
【讨论】: