Click to See Complete Forum and Search --> : PHP 5.1.6 recompile


cogit8
04-18-2007, 09:46 AM
I want to enable MySQL support in php5 and have downloaded the sources, installed gcc and tried to run the ./configure command using the config options that appear on the phpinfo() page using --with-mysql. I have also set the --prefix option to point to the source directory.

I get a whole bunch of errors, the final one being a nofind of lex, which can be viewed in the attached file. I'm running FC6 on i386 platform. Any ideas please?:confused:

If anyone knows of an RPM of php5.1.6 or later with mysql enabled I'd be gratefule if you could point me in that direction too.

Thanks for any help.

Alan

cogit8
04-18-2007, 09:53 AM
./configure < phpCfgLocal2
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target 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 how to run the C preprocessor... gcc -E
checking for icc... no
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 whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3375: lex: command not found
configure: error: cannot find output from lex; giving up

neurones67
04-29-2007, 06:12 AM
You must install flex. If you're on Debian, do that :
apt-get update
apt-get install flex