I used this configure line ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-gd-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib=/usr/ --with-freetype-dir=/usr/local --with-bison --with-curl=/usr/local
and I get this error: gcc: sapi/cli/php_cli.o: No such file or directory gcc: sapi/cli/getopt.o: No such file or directory make: *** [sapi/cli/php] Error 1 this is on Freebsd 4.8 apache 2.0.47 mysql 4.0.16 php 4.3.2 bison 1.87 gd 2.0.15 libpng 1.2.0 Mark DeWar