Installing Gearman application framework on Debian Linux

Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages.

Download Gearman from the download page or Launchpad (example below).

$ cd /tmp
$ wget

Make sure you check the md5 checksum of the downloaded file and compare it with the one mentioned on the downloads page (link can be found next to the file you downloaded on Launchpad).

$ tar xzf gearmand-0.14.tar.gz
$ cd gearmand-0.14

Here are the software I installed before installing Gearman. You can also compile and install libevent using the instructions detailed in How to install libevent on Debian/Ubuntu/Centos Linux.

# apt-get install libevent-devel
# apt-get install uuid-dev

Configure and install Gearman in /opt/gearman directory (you can change the directory if you will).

$ ./configure --prefix=/opt/gearman --enable-coverage --enable-dtrace --enable-profiling
$ make
# make install

Running Gearman in deamon mode as user username (replace it with the user you want to use):

/opt/gearmand/sbin/gearmand -u username -d

Did this tutorial help a little? How about buy me a cup of coffee?

Buy me a coffee at

Please feel free to use the comments form below if you have any questions or need more explanation on anything. I recommend thoroughy testing on a production-like test system first before moving to production.

Comments (write a comment):

I trying to install Gearman on ubuntu , I am stuck to "undefined reference to `boost::program_options::detail::cmdline::get_canonical_option_prefix()'" error in , make . How can I fix it? Posted by: Kishor on Sep 11, 2012

if you have problem with boost maybe you need to install g++ or gcc-c++ . Then install also libboost-program-options-dev and libboost-thread-dev Posted by: Gilles on Dec 18, 2012

leave a comment on tutorial leave a comment