LinuxSir.cn,穿越时空的Linuxsir!

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

我不知道如何解决这样的编译问题

[复制链接]
发表于 2006-9-15 11:04:14 | 显示全部楼层 |阅读模式
checking whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... re2c
checking for re2c version... invalid
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... bison -y
checking for bison version... 1.875 (ok)
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up

debian:/opt/php-5.1.6# make
make: *** 没有指明目标并且找不到 makefile。 停止。
debian:/opt/php-5.1.6#




求助!!!!!!!!!!!!!!
 楼主| 发表于 2006-9-15 11:06:21 | 显示全部楼层
是在执行这样的编译后的情况


cd php-5.1.4

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-xml
回复 支持 反对

使用道具 举报

发表于 2006-9-15 11:18:43 | 显示全部楼层
checking lex output file root... ./configure: line 3246: lex: command not found
回复 支持 反对

使用道具 举报

发表于 2006-9-15 12:44:23 | 显示全部楼层

可以找找类似--without-doc之类的选项

可以找找类似--without-doc之类的选项,不要编译手册和文档
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-16 07:57:32 | 显示全部楼层
原来在编译php时还必须安装bison和flex中的一个  

     apt-get install bison flex
回复 支持 反对

使用道具 举报

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

本版积分规则

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