Professional Documents
Culture Documents
Installing Lex and Yacc On Ubuntu 6
Installing Lex and Yacc On Ubuntu 6
The lex and yacc are compiler construction tools and are referred to as "flex" and "bison"
packages respectively for Ubuntu.
First and foremost to check if lex and yacc are already present on your Ubuntu , click on
the terminal and type the following
If lex and yacc are already present , you will be notified by a message
" /usr/bin/lex" and " /usr/bin/yacc".
If such messages are not received , it would indicate that the tools are absent.
Apply mark for installation and click on "Apply" on the toolbar in the Synaptic Package
Manager.
Now to confirm that flex and bison have been setup , go to the
terminal and type "which lex" and "which yacc"
The /usr/bin/lex shows that the flex tool has been setup,showing the same for yacc as
well.
Alternatively u can install the above tools by issue the following commands
galacticosfan@galacticosfan:~$ sudo apt-get install flex
galacticosfan@galacticosfan:~$ sudo apt-get install bison