我想安装以下软件,但不确定应该在哪里添加--enable-zip?有没有比把它放到php.ini中更重要的事情呢?
http://www.php.net/manual/en/zip.installation.php
发布于 2009-12-09 05:41:06
这种--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,可以使用以下命令。
https://stackoverflow.com/questions/1870003
复制相似问题