Sunday, January 27, 2013

Installing Gearman on Amazon's EC2 Linux AMI

Steps below show how to install Gearman on Amazon Linux AMI. I assume you are logged in as root or you may want to use sudo. 

1. cd /var/tmp;
2. wget
3. yum install libevent-devel gcc-c++ boost-devel libuuid-devel memcached-devel gperf
4. tar xvzf gearmand-1.1.4.tar.gz
5. cd gearmand-1.1.4
6. ./configure --prefix=/usr
7. sudo make && sudo make install
8. adduser gearmand
9. /usr/sbin/gearmand -u gearmand
10.  pecl channel-update
11.  pecl install channel://
12.  php --ini
13.  echo "" >> /etc/php.ini
14.  /etc/rc.d/init.d/httpd restart

Some useful commands:

php --info | grep gear

You may find different versions here and replace it with the wget link above.

Thanks to: