# 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[1]: *** [php_namazu.slo] Error 1 make[1]: 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.