sudo apt-get install gearman gearman-job-server gearman-tools libgearman4 libgearman-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libgearman4: Conflicts: libgearman-server0
libgearman6: Conflicts: libgearman-server0
E: Broken packages

I tried installing libgearman-server0 but then I got the following message

The following packages have unmet dependencies:
gearman-tools: Depends: libgearman6 (= 0.32-0~598-1~lucid1) but it is not going to be installed
libgearman-dev: Depends: libgearman6 (= 0.32-0~598-1~lucid1) but it is not going to be installed
E: Broken packages

When I install this package, it just gives me the previous message (it just keeps alternating)

It may be that the version (1.1.2) of gearman you are trying to compile requires a newer version of boost than the one available on Ubuntu 10.04 (the instructions you mention are for 1.0.2, the requirements may have changed since then). There are gearman packages available for Ubuntu 10.04 for an older version of gearman (0.10), do you really need the latest gearman version?
–
Pedro RomanoOct 21 '12 at 14:53

Hmm, you may be right. No, I don't need the latest version. Should I be trying something from the 0.2 branch?
–
JohnPOct 21 '12 at 15:17

I would suggest installing the Ubuntu 10.04 gearman related packages as the first step. That should be the easiest solution. If that doesn't meet your requirements, then try to compile version 1.0.2 or the latest from the 1.0.x branch.
–
Pedro RomanoOct 21 '12 at 15:20

2

This is what I use to install when compiling it "apt-get install gearman build-essential libboost-dev libevent-dev uuid-dev libboost-program-options-dev libboost-thread-dev" Hope this helps
–
Simon BennettOct 25 '12 at 18:51