Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-14-2005, 02:06 PM   #1
LQ Newbie
Registered: Sep 2005
Location: Bangalore,India
Distribution: Ubuntu dapper
Posts: 26

Rep: Reputation: 15
does ubuntu have lex and yacc,how to use them??

i am using ubuntu hoary, i would like to know how to use the lex (or FLEX) and YACC tools in it, i tried searching for them but could not find them in the distro, does ubuntu haory distro include these two tools??
please reply soon!!
Old 09-14-2005, 03:38 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,845

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
To find out if you have lex and yacc, open a term window and enter these commands:
which lex
which yacc

They should return something like:

How to use them?
Try this primer/HOWTO
Old 10-13-2005, 02:02 AM   #3
LQ Newbie
Registered: Oct 2005
Posts: 14

Rep: Reputation: 0
Ubuntu by default does not have lex and yacc installed.. You can install them seperately.. Try to find softwares called Bison and flex from and install the same..
Old 05-30-2006, 06:06 AM   #4
LQ Newbie
Registered: May 2006
Posts: 1

Rep: Reputation: 0
lex yacc : Solution

I just found the solution.
you have to use flex instead of lex
and bison instead of yacc.

the package names are flex and bison
Old 05-26-2010, 07:36 PM   #5
LQ Newbie
Registered: May 2009
Location: Hangzhou China
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 1
Smile install flex instead of lex

Originally Posted by Migou View Post
I just found the solution.
you have to use flex instead of lex
and bison instead of yacc.

the package names are flex and bison
Hi ,friends, thank you very much.
I begin to install cdecl but it need lex and yacc, I installed yacc first than when I use sudo apt-get install lex, it notes that can't find lex until I find what you have said.
Thank you for all of you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 and YACC with C gr33ndata Programming 4 11-18-2007 06:12 PM
Lex and Yacc on Federo 2.0 vivekian Fedora 6 05-20-2006 10:09 AM
how to work on lex & yacc? sharathg786 Ubuntu 2 09-13-2005 05:52 AM
Lex and Yacc on Mandrake 9.2.2 Anuradha Linux - Software 0 07-02-2005 04:32 AM
Lex & YACC coolfrog Programming 3 09-25-2004 08:00 AM

All times are GMT -5. The time now is 10:22 PM.

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