Cygwin problem: lex: Command not found‏

2008-07-28 Thread Yau KL


Hi All,

I would appreciate your answer very much on this. When I do ./configure in 
cygwin, I got the two following related messages:

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

I have installed flex in Cygwin. I did the following:

$ which flex
/usr/bin/flex

$ which lex
which: no lex in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:)

I also echo $PATH and my $PATH leads to /usr/bin/flex.

I suppose that to use lex, one has to install flex, and I have done that, 
what's the problem?

Thanks for your help!

Regards,
KL

_
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all

--
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/



Re: Cygwin problem: lex: Command not found‏

2008-07-28 Thread Hugh Sasse



On Mon, 28 Jul 2008, Yau KL wrote:




Hi All,

I would appreciate your answer very much on this. When I do ./configure in 
cygwin, I got the two following related messages:


./configure for which package?


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


Because you have flex, not lex.


I suppose that to use lex, one has to install flex, and I have done that, 
what's the problem?


Flex is free but non-GNU lex. See:
http://www.gnu.org/software/flex/
which therefore points to sourceforge.  The problem, from the
information you have given as I see it, is that your Makefile is
looking for lex, when it should be looking for flex.  You'll need to
see how it is used in the Makefile.



Thanks for your help!

Regards,
KL


Hugh

--
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/