各位高手请看一下.安装php5.0.0时遇到的问题

各位高手请看一下.安装php5.0.0时遇到的问题

我安装php5.0.0的时候:#tar jxvf php-5.0.0-RC2.tar.bz2
#./configure --prefix=/opt/php --with-apxs2=/opt/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/opt/php/etc

的时候出现下面的问题:
checking lex output file root... ./configure: line 2418: lex: command not found
configure: error: cannot find output from lex; giving up
然后我直接输入
# ./configure的时候还是同样问题:
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... no
checking for gawk... gawk
checking for bison... no
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 2418: lex: command not found
configure: error: cannot find output from lex; giving up
没遇到过,换个包试试?
记得php5.0不是成熟包,所以许多人没有用过,不过你安装前先看看安装目录下的INSTALL或./configure --help。
我装过php5.0.对中文的支持不是很好
我用的是全文本界面的
用vi想看看install里的内容却打不开..
难道这是php5才出现的问题??
哪位高手帮帮忙啊...偶是新手..hoho
我用的是全文本界面的
用vi想看看install里的内容却打不开..
难道这是php5才出现的问题??
哪位高手帮帮忙啊...偶是新手..hoho
然后我安装php-4.3.8的时候情况也差不多,是这样的:
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 2425: lex: command not found
configure: error: cannot find output from lex; giving up

谁能解释一下啊?
缺少合适的 lex 工具。 安装或更新 flex 包。