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?
From the looks of things, your makefile is expecting a
yaccexecutable to be available and either it’s not, or it’s not on your path.Since
bisonis supposed to be compatible withyaccso the first thing I would try would be:and try again. On my setup,
/usr/bin/yaccis simply a script containing:You can try to locate the
yaccorbisonexecutables with the command (substituting bison for yacc if need be):But they’re probably in one of the standard places like
/binor/usr/bin.