2
我想安裝以下內容,但不知道應在哪裏添加--enable-zip?除了把它放在php.ini中,還有更多嗎?在Mac OS X上安裝PHP的zip擴展--enable-zip
http://www.php.net/manual/en/zip.installation.php
我想安裝以下內容,但不知道應在哪裏添加--enable-zip?除了把它放在php.ini中,還有更多嗎?在Mac OS X上安裝PHP的zip擴展--enable-zip
http://www.php.net/manual/en/zip.installation.php
這種--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
如果你想/需要重新編譯PHP與--enable-zip option
,它會就在這個命令去。