Compiing php 5 Lex: command not found
I'm trying to get php5 to work on suse 10.
When compiling I get the message LEX: command not found. Am I missing some tools. Here's the log blackdog:/mydata/php5/php-5.1.2 # ./configure --prefix=/usr/local/php5\ > --with-apxs2=/usr/local/apache2/bin/apxs\ > --with-libxml-dir=/usr/local/lib --with-zlib\ > --with-zlib-dir=/usr/local/lib \ > --with-mysqli=/usr/bin/mysql_config\ > --with-gd --enable-soap --enable-sockets \ > --with-jpeg-dir=/usr --enable-exif creating 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... /usr/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 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 pa rsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: line 3246: lex: command not found configure: error: cannot find output from lex; giving up blackdog:/mydata/php5/php-5.1.2 # I don't want to go back to php4. Mysql V5 and apache 2 are both working perfectly. Thanks Cheers -K |
Try to install flex.
EDIT: if installed, maybe you need to specify the path in a prefix (it's in /usr/bin on my system) or install flex-devel (if existent). |
All times are GMT -5. The time now is 05:58 AM. |