QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1428|回复: 4

装php5出错 求助。。。。

[复制链接]
发表于 2006-11-7 18:13:22 | 显示全部楼层 |阅读模式
> --with-mcrypt \
> --enable-roxen-zts \
> --enable-zend-multibyte \
> --enable-track-vars \
> --enable-mbstring \
> --enable-mbregex
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 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 3276: lex: command not found
configure: error: cannot find output from lex; giving up
[root@cs11 php-5.2.0]#
发表于 2006-11-11 00:27:38 | 显示全部楼层
我也碰到类似错误,我一开始以为是apxs问题,在我找不到apxs后我重新编译apache2.2,但问题依旧,请知道答案顺便copy给我一份。
Email:[email protected]
回复

使用道具 举报

发表于 2006-11-11 13:49:04 | 显示全部楼层
今天静下心来想了一下可能是缺少了一些必要的软件,例如:re2c、bison等。
下载re2c-0.10.6.tar.gz,编译安装后少了一个警告。
下载bison-2.3.tar.bz2,编译安装后又少个警告。
下载flex-2.5.33.tar.bz2,编译安装后上面的错误基本消除。
安装好软件后记得做ln到/bin目录下,不然系统找不到re2c、bison、flex这几个工具。
回复

使用道具 举报

发表于 2006-11-12 00:59:45 | 显示全部楼层
然后就是安装libxml2这个软件,这个软件不用设置--prefix参数,只是./configure安装就行了,不然php5会找不到的。
回复

使用道具 举报

发表于 2006-11-12 01:01:48 | 显示全部楼层
经过了两天的折磨,终于安装成功 apache2.2.3+php5.2.0
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-22 07:41 , Processed in 0.039475 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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