LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 889|回复: 2

我在按装php的时候老是出现这个错误,请朋友帮我看看吧?

[复制链接]
发表于 2004-4-7 09:57:27 | 显示全部楼层 |阅读模式
我在按装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!
发表于 2004-4-7 10:35:46 | 显示全部楼层
没有找到lex,装上它。
建议你安装系统的时候把开发包装上,这里不止是一个gcc的问题,东西多多,麻烦多多。
 楼主| 发表于 2004-4-8 15:02:32 | 显示全部楼层

是啊是啊。

我主要是做服务器想精减一下嘛。平时都就装让的。
他其实叫flex在出错时我也在光盘里找了没有找到lex所以我以为没有,后来才知道是flex。。。。。。。
好啦。谢谢了楼上的位。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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