LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error after installing flex and bison (https://www.linuxquestions.org/questions/linux-newbie-8/error-after-installing-flex-and-bison-822044/)

narakunaraku 07-25-2010 08:26 AM

Error after installing flex and bison
 
I have installed flex and bison in ubuntu 9.10.I downloaded the the respective tar files and followed the instructions as it was given in the Install file. However after installation I got lex command not found when I tried using it. Moreover I found no lex file in /usr/bin.

bathory 07-25-2010 09:14 AM

Why didn't you used your package manager to install the 2 packages
Code:

apt-get install bison flex

theNbomr 07-25-2010 10:26 AM

Or, you can probably simply add soft links from flex & bison to lex & yacc, respectivley:
Code:

cd /usr/bin
ln -s /usr/bin/flex lex
ln -s /usr/bin/bison yacc

You may have to e root to do this, and you may have to change the flex & bison filespec to match where they really got installed.

--- rod.

narakunaraku 07-30-2010 11:51 AM

found a something
 
Instead of lex command flex is working and instead of yacc bison is working. Anyway thank you


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