Cygwin problem: lex: Command not foundþ

Brian Dessent brian@dessent.net
Mon Jul 28 16:54:00 GMT 2008


Yau KL wrote:

> checking for flex... flex
> checking lex output file root... lex.yy
> 
> The above shows that I have flex. However, when I run make, I got this error
> 
> make[1]: lex: Command not found

You need to look at the generated makefile to see what it's trying to
invoke and why it's trying to run a nonexistant program.  It could
simply be that the person that wrote this makefile wasn't very good at
writing portable software and on their system they had the traditional
unix version of 'lex' instead of 'flex' and they never thought to refer
to it as $(LEX) (the result of the configure test) but instead just
assumed that everyone else would have 'lex' too.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list