I'm trying to install PHP 4.4.6 and Apache 2.0 at the same time, for which there are fairly explicit directions. Halfway through the installation process it asks to configure PHP right before "make" and "make install". The lines I've tried to execute are:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
as well as
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
I do not have MySQL installed, so I assumed that was my first problem. I have no idea if you can actually configure with the MySQL flag without having it or not, but it doesn't seem to be the issue. The error is as follows:
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2558: lex: command not found
configure: error: cannot find output from lex; giving up
I am trying to install apache and php for the first time and have little to no experience with either, so if anyone is gracious enough to offer any insight, please approach it as though I know NOTHING.
Thanks,
rmyers