I found good tutorial to install the gearman for ubuntu here, At the last I got the following error, I don’t found a fix, still I downgrade the gearman version and it works
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626+lfs/gearman.so’ – /usr/lib/php5/20090626+lfs/gearman.so: cannot open shared object file: No such file or directory in Unknown on line 0
Install Gearman 1.1.1 from pecl
sudo pecl install gearman-1.1.1