QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 749|回复: 4

安装 PHP在.configure时出现的错误,请指教!

[复制链接]
发表于 2004-10-26 09:56:59 | 显示全部楼层 |阅读模式
[root@york php-4.3.9]# ./configure --with-apx2=/usr/local/apache/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-safe-module --enable-track-vars --enable-trans-sid --enable-xml --with-mysql --with-xml
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
[root@york php-4.3.9]#
发表于 2004-10-26 13:21:04 | 显示全部楼层
试试简化参数:
# ./configure --with-apx2=/usr/local/apache/bin/apxs --enable-track-vars --enable-xml --with-mysql --with-xml
然后一个一个加,意思就是用排除法排错。
回复

使用道具 举报

 楼主| 发表于 2004-10-26 17:36:58 | 显示全部楼层
[root@york php-4.3.9]# ./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 parser
s.
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
[root@york php-4.3.9]#
单独调试是这样的
回复

使用道具 举报

发表于 2004-10-26 18:48:57 | 显示全部楼层
[quote:b973af74ce="netbuddy"]./configure: line 2425: lex: command not found [/quote]

这不是说的很清楚吗,它需要 lex。
安装 flex 。
回复

使用道具 举报

 楼主| 发表于 2004-10-26 19:42:59 | 显示全部楼层
系统默认安装时候没安装,后来安装后搞定,谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 07:38 , Processed in 0.040411 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表