I am trying to install Gearman on my Ubuntu 12.04 machine by following command
sudo apt-get install gearman-job-server libgearman-dev
sudo apt-get install php-pear php5-dev
Above commands run properly but when I run
sudo pecl install gearman
it is giving errors as follows
checking whether to enable gearman support... yes, shared
found in /usr
checking for gearman_client_set_context in -lgearman... yes
checking for gearman_worker_set_server_option in -lgearman... yes
checking for gearman_job_error in -lgearman... no
configure: error: libgearman version 1.1.0 or later required
ERROR: `/tmp/pear/temp/gearman/configure' failed
I am not able to find how to install it.
Another option is to install libgearman-dev from the gearman PPA:
Assuming you've already installed libgearman-dev and gearman-job-server, all you have to do is:
To upgrade gearman, then simply run pecl again and it should work this time:
In your repository there is old version of gearman. You need do download source of the latest version (at least 1.1.0)from http://www.gearman.org/ compile and install it. Then installation php module with pecl will go smoothly. I had similar problem on centos.
You can try installing an older version of gearman pecl extension. For e.g. latest version on Ubuntu 12.10 install failed. However, specifying bit earlier version worked fine:
You can find list of available versions on http://pecl.php.net/package/gearman