LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Cygwin problem: lex: Command not found (https://www.linuxquestions.org/questions/linux-distributions-5/cygwin-problem-lex-command-not-found-658747/)

EasyLife 07-28-2008 06:26 AM

Cygwin problem: lex: Command not found
 
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

knudfl 07-28-2008 10:19 AM

Usually 'lex' is just a softlink to 'flex'
( in /usr/bin/ )
I do not know Cygwin, concerning links,
but a copy of 'flex' should also do.

Regards


All times are GMT -5. The time now is 12:44 PM.