I have been getting the following error when trying to compile monit for my CentOS server:

make: *** [y.tab.c] Error 127

To resolve it, I simply installed bison:

yum install bison

Then run configure again:

./configure
make && make install

And that fixed the problem!  Hope that helps someone.