If you'e compiling a shared extension (e.g. pspell) whose libs & headers are not in the usual place, use the following:
--with-pspell=shared,/my/custom/path/to/pspell/
Took me forever to figure out, since Google had no answer for me.
![]() | 附录 F. 配置选项
核心配置选项列表下面是 PHP 的 configure 脚本使用的部分选项的列表,用于类 Unix 环境的编译。大部分配置选项在扩展模块参考页面适当的位置列出,而不是在这里。要查看所有可用配置选项的列表,在运行 autoconf 命令后在 PHP 的源代码目录运行 ./configure --help(参见安装与配置一章)。也可以阅读 GNU configure 文档以获得有关 configure 命令的更详细信息,例如 --prefix=PREFIX。
在 PHP 4 中的配置选项
杂项选项
SAPI 选项下面的列表包含 PHP 可用的SAPI(服务器应用编程接口)。
![]()
jovcic ate gseis stop ucla stop edu
09-Jul-2005 09:26
If you'e compiling a shared extension (e.g. pspell) whose libs & headers are not in the usual place, use the following:
joerg at fenin dot de
14-Apr-2005 03:15
If some options do not become active after doing a configure; make; make install, try to do a make clean after configure. That worked for me when enabling memory limts (--enable-memory-limit).
17-Jan-2004 07:33
>/usr/local/lib needs to be listed in /etc/ld.so.conf, but it should already
steve at njord dot org
06-Oct-2003 08:32
If you're trying to build with --with-imap and your uw-imap stuff is built SSLTYPE=nopwd then you will fail the "Checking if IMAP works" check if you don't also build with --with-imap-ssl
squeeNoSpam at NoSpamAddress dot com
15-Aug-2002 03:06
[Editor's note: The reason why some general options for the "configure" scripts are not documented is that said script is part of the GNU autoconf tools, and as such its general options are documented elsewhere, e.g.: http://www.gnu.org/manual/autoconf/index.html and http://www.airs.com/ian/configure/. Some are also documented in the INSTALL file that comes with the source distribution.]
tysonlt from web_SPAMOFF_media com au
15-Apr-2002 01:42
RE: Servlet support, I found that you need to configure --with-servlet=/usr/local/tomcat/common.
tsaberi at home dot com
15-Sep-2001 05:05
I tried compiling PHP from source with PostgreSQL support (./configure --with-pgsql=/usr/local/pgsql) and ran into a bunch of problems when trying to 'make'. The problem was that some of the PostgreSQL headers were not installed by default when I installed PostgreSQL from source. When installing PostgreSQL make sure you 'make install-all-headers' after you 'make install'.
ceo at l-i-e dot com
14-Aug-2001 03:05
--enable-sigchild is only relevent to users of Oracle who are having <defunc> processes.
petrov at rice dot edu
04-Nov-2000 02:27
If you are building with --with-pgsql=/some/dir, make sure that you still have libpq loaded up by ldconfig. I compiled and installed postgres from the tarball and then had to manually create the symlinks in /usr/local/lib. In particular, after you have built and installed postgres, you need to do the following (presuming you installed to /usr/local/pgsql):
| ![]() |