|
configure php install error
Hi I am trying to install php5 on madrake 9.0 and I am running the following config command,
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
When I run this It runs okay and then it gets to the following section
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... mawk
checking for bison... bison -y
checking bison version... 1.875 (ok)
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2418: lex: command not found
configure: error: cannot find output from lex; giving up
I keep getting this error with lex. I was getting an error before that said I would need to install bison, so I did, and now it says checking bison version
and that works okay.
Can anyone out there please tell me what I might be able to do to deal with this issue.
Thanks
Joe
in the config file here is the lines of code starting at line 2416
# (Solaris, I think it was) want two %% lines, so accommodate them.
echo '%%
%%' | $LEX
if test -f lex.yy.c; then
ac_cv_prog_lex_root=lex.yy
elif test -f lexyy.c; then
ac_cv_prog_lex_root=lexyy
else
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit\
1; }
fi
fi
Again thanks for the help
Joe
|