Tech Thought

Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX

Entries Tagged ‘centos’

How-To Fix: make: yacc: Command not found

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.

Leave a Comment

How-To: Install GD on CentOS

Installing the GD library is easy on CentOS thanks to yum.  Simply type:

yum install gd gd-devel php-gd

And all your GD fun is installed and ready to go.  I was trying to install the Perl module GD::Graph and it wouldn’t compile, complaining:

GD.xs:7:16: error: gd.h: No such file or directory

After installing the GD-Devel package, everything is fine [...]

Leave a Comment