# cd ../namazu/ # phpize # ./configure --with-namazu # make
php_namazu.c:16:30: namazu/libnamazu.h: No such file or directory php_namazu.c:17:26: namazu/field.h: No such file or directory php_namazu.c:18:26: namazu/hlist.h: No such file or directory php_namazu.c:19:28: namazu/idxname.h: No such file or directory php_namazu.c:20:25: namazu/i18n.h: No such file or directory php_namazu.c:21:27: namazu/search.h: No such file or directory php_namazu.c:22:26: namazu/query.h: No such file or directory make: *** [php_namazu.slo] Error 1 make: Leaving directory `/usr/local/src/php-4.0.6/ext/namazu' make: *** [all-recursive] Error 1
If you're trying to use Apache 2.0.x and PHP, you'll need to do the following: First, make sure that when you configure PHP you use the --with-apxs2 option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this instead of --with-apxs. Second, when you edit your httpd.conf, instead of adding the AddType line, add the following: <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> to where you would normally add the AddType line. This works for me using PHP 4.1.2 and Apache 2.0.28. YMMV.
＞Compatibility ＞The Apache Software Foundation recently released their first General Availability version of Apache 2. ＞PHP 4.2.0 will have experimental support for this version. You can build a DSO module for Apache 2 ＞with --with-apxs2. We do not recommend that you use this in a production environment.
＞PHP 4.2.0 still lacks certain key features on Mac OS X and Darwin, and isn't officially supported ＞ by the PHP Group on these platforms. Specifically, building PHP as a dynamically loaded Apache module ＞ isn't supported at this time. PHP 4.3.0, due to be released in August, 2002, will be the first PHP release ＞to officially support Mac OS X. It, along with future Mac OS X and Apache releases, will enable full feature ＞ parity with other PHP platforms.
実験だの非公式だのサポート外だのが踊ってるぽ。まだまだ安心して使えないぽ。Apache2のDSOとかMac OS X とかが地雷原だぽ。葉月の4.3.0 releaseまで待つぽ。