Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

How to install lex and yacc in fedora

March 10, 2010 at 9:58 am (Uncategorized) To install lex , yacc and the c compiler in fedora we also need a package called yum . So, the first step is to install yum package, jump to step 2 if you already have yum in your fedora. copy paste following instructions in terminal. step 1: For installing yum cd ~ mkdir yum cd yum wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz tar -xvzf yum-2.0.7.tar.gz cd yum-2.0.7 ./configure make make install this must have installed yum also try. apt install yum [incase you have older version] step 2: For installing lex and yacc yum install flex bison or, yum install flex yum install byacc [if "yacc -d filename.y" doesn't work try" bison filename.y"] step 3: For installing c compiler yum install gcc voila!! you can now try executing and compiling some simple program in lex and yacc . In case of any error,please let me know.

You might also like