LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-28-2008, 06:26 AM   #1
EasyLife
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 07-28-2008, 10:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lex: command not found PankajDS Linux - General 5 02-14-2008 03:03 PM
cygwin-6.dll was not found scbops General 1 04-11-2006 03:36 PM
Compiing php 5 Lex: command not found 1kyle SUSE / openSUSE 1 03-27-2006 07:47 AM
Problem: Startx Command Not Found rvijay Debian 11 02-13-2005 11:40 AM
Command not found problem rudon Linux - Newbie 3 04-16-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration