Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

In your repository there is old version of gearman. You need do download source of the latest version (at least 1.1.0)from compile and install it. Then installation php module with pecl will go smoothly. I had similar problem on centos.

share|improve this answer
Thank you I will try it – PankajK Mar 13 '13 at 8:06
I downloaded gearmand from and ./configure it but it is giving error as "configure: error: cannot find Boost headers version >= 1.39.0" – PankajK Mar 13 '13 at 9:05
You need to install some additional software needed in compilation proccess linux headers gcc ... etc. On centos I install this software to make compilation gearman succesful : gcc gcc-c++ mysql mysql-devel boost-devel libevent libevent-devel – B14D3 Mar 13 '13 at 9:19
Thank you, I installed new version of gearman 1.1.5 with its dependancies and installed php module and worked perfectly. – PankajK Mar 14 '13 at 9:28

Another option is to install libgearman-dev from the gearman PPA:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:gearman-developers/ppa
sudo apt-get update

Assuming you've already installed libgearman-dev and gearman-job-server, all you have to do is:

sudo apt-get upgrade

To upgrade gearman, then simply run pecl again and it should work this time:

sudo pecl install gearman
share|improve this answer
Best way to do it. – Matthew Scragg Sep 25 '13 at 18:33

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:

pecl install gearman-1.0.3

You can find list of available versions on

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.