"make: yacc: Command not found" after installing Bison

Blackforest picture Blackforest · May 24, 2012 · Viewed 43.2k times · Source

While running a makefile in gcc 4.1.2 (linux 5), I got the following error

make: yacc: Command not found

By googling, I came to know that this error can be rectified by installing Bison-GNU parser generator. But even after installing Bison, I get the same error.

How can this error be solved?

Answer

Julius TM picture Julius TM · Oct 6, 2014

Run the following command on your terminal to install bison, yacc executables and configurations.yacc comes along with bison

Also you need byacc for a full functional yacc

sudo apt-get install bison -y
sudo apt-get install byacc -y

It worked for me.