Ack, big-time RTFM here. Please read the INSTALL file. For --with-apache you must have the Apache source tree available.
For --with-apxs you obviously need apxs. Usually in the various apache-dev packages on the various systems. If you don't have either, then yes, you can only build the cgi version. As for --with-mysql, as the INSTALL file states very clearly: There are a few things that can go wrong during this configure step. The most common is that you have asked for an option and that the configure script can not find the files required to enable this option in PHP. Chances are you can provide the full path to the base directory under which the related files were installed. For example, if you have installed the GD library in /opt/gd which means that /opt/gd/include has your GD header files and /opt/gd/lib contains your GD library files, you would use --with-gd=/opt/gd This tells you that you should be using --with-mysql=/usr in your case. -Rasmus On Wed, 27 Feb 2002, [iso-8859-1] Brett Cavé wrote: > Hi > > I installed flex which solved my earlier problem. Now, when i configure php, > i get another error. > > I have tried to install it 2 ways: > > --with-apache > With this option, the httpd.h file cannot be found. > > --with-apxs: > There is no "apxs" file. > > If i do not use one of these options, will PHP only be able to be used as a > cgi? how would i solve this problem? > > > During the installation, the mysql header files also cannot be found. They > are in /usr/include/mysql, but when i > specify --with-mysql=/usr/include/mysql/ it reports that the headers where > not found. > > > Brett > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php