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
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.