From the error message the line that says:
checking lex output file root... ./configure:
This particular part is important:
lex: command not found
do a find on your system for the command lex, or flex. If you don't have either of those anywhere on the system go to rpmfind.net and download the flex package for RH 7.1. If it doesn't create the lex symlink automagically then create it yourself and the program should continue with the configure. My version of lex was installed under /usr/bin. That's where yours should be after the rpm install.
Simon Lee wrote:
Dear all,
After apache, mysql, and php are installed in Redhat 7.1 by rpm tool, I would like to integrate php and mysql, together
./configure -with-apache=/etc/httpd/conf
-with-mysql=/usr/bin
the following message is prompt out,
Would you give me a help, thanks
Simon
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the....