LinuxSir.cn,穿越时空的Linuxsir!

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

php安装怎么会出错呢..

[复制链接]
发表于 2006-5-14 19:51:12 | 显示全部楼层 |阅读模式
我用的是apache2.0.58
mysql5.0.21
php.5.1.4
安装php时候./configure 和./configure -prefix=/usr/local/php都出现这种错误
error:cannot find output from lex

这是什么错误啊..
发表于 2006-5-15 06:20:06 | 显示全部楼层
安装flex了吗?另外,可以使用源进行安装。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-15 12:41:42 | 显示全部楼层
flex是什么啊..没听说过..能给解释一下吗
回复 支持 反对

使用道具 举报

发表于 2006-5-15 16:18:17 | 显示全部楼层
Post by jame298
flex是什么啊..没听说过..能给解释一下吗
运行aptitude,搜索flex。不是我打击兄弟的热情---如果简单的出错信息你无法看懂的话,建议不要自己编译软件,否则自找麻烦。不如使用aptitude安装php
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-15 23:47:58 | 显示全部楼层
这个出错信息我看的懂就是不能从lex中找到输出..我就是想问一下lex是什么东西..我上网上一搜是一摩托罗拉的一个什么东西..
回复 支持 反对

使用道具 举报

发表于 2006-5-16 12:30:28 | 显示全部楼层
我不是说了,让你运行aptitude然后搜索flex吗?几乎每个软件都有介绍。
A fast lexical analyzer generator.
flex is a tool for generating scanners: programs which recognized lexical
patterns in text. flex reads the given input files for a description of a
scanner to generate. The description is in the form of pairs of regular
expressions and C code, called rules. flex generates as output a C source
file, lex.yy.c, which defines a routine yylex().  This file is compiled
and linked with the -lfl library to produce an executable. When the
executable is run, it analyzes its input for occurrences of the regular
expressions. Whenever it finds one, it executes the corresponding C code.

The behaviour of Flex has undergone a major change since version
2.5.4a; Flex scanners are now reenterant, you may have multiple
scanners in the same program with differing sets of defaults, and
they play nicer with modern C and C++ compilers. The Flip side is
that Flex no longer conforms to the POSIX lex behaviour, and the
scanners require conforming implementations when flex is used in ANSI
C mode. The package flex-old provides the older behaviour.

This product includes software developed by the University of California,
Berkeley and its contributors. The upstream source code can be found at
http://prdownloads.sourceforge.n ... 33.tar.bz2?download
The project web page is at http://flex.sf.net/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-18 23:00:51 | 显示全部楼层
真是太谢谢你了
回复 支持 反对

使用道具 举报

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

本版积分规则

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