Gearman installation on CentOS and AMI Linux

Gearman installation on CentOS and AMI Linux

Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work.

This solution is truly multiplatform, so we have Client API and Wordkres in multiple languages like Shell, Perl, NodeJS any couple of others (PHP!)

Installation is pretty simple on CentOS boxes,

yum install -y libevent-devel
yum install -y gcc-c++
yum instal -y boost-devel
yum install -y libuuid-devel
yum install -y memcached-devel
./configure --prefix=/usr && make && make install

Unfortunately with Amazon EC2 and default AMI Linux instance it’s not so easy. I don’t know why, by default boost-devel is broken, so yoy have to compile it manually from the sources. Other wise you could get couple of weird erros during compilation:

tar zxvf boost_1_51_0.tar.gz
cd boost_1_51_0
/ --prefix=/usr
./b2 install

I strongly recommend upgrading instance to something faster then micro, because compilation from sources is takin a lot of time.