由 budaodao 在 04-07-2004 09:57 发表:
我在按装php的时候老是出现这个错误,请朋友帮我看看吧?
我在按装php+apache+mysql总是在php处出现问题,我一直也不知道是什么原因。
我的linux是选用最精简选项按装的,rhE3.0。对了,精简按装时默认是不按装gcc的,我是在按装完成后手动按装的。
可是在按装php时老是出错,apache和mysql都没有问题,不知道是什么原因。
错误如下:
[root@GUNLINUX php-4.3.5]# ./configure --prefix=/opt/php --with-mysql=/usr/local/mysql4 --with-apx
s2=/opt/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=/opt/php/etc
creating 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 2425: lex: command not found
configure: error: cannot find output from lex; giving up
------------------------------------------>
既使在configure时不加参数也会出错。。faint!
GNU/Debian_linux
业精于勤,荒于嬉,行成于思,毁于随.
爱机:AMD Athlon XP 1700+/256MB x 2/80G/升技NF2主板/GF2.400显卡(也不玩游戏)/SONY光驱+SONY刻录机/1.44软/宝狮电视卡/LG显示器/
由 cozo 在 04-07-2004 10:35 发表:
没有找到lex,装上它。
建议你