Skip to content

Instantly share code, notes, and snippets.

@kachayev
Created June 13, 2011 14:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kachayev/1022911 to your computer and use it in GitHub Desktop.
Save kachayev/1022911 to your computer and use it in GitHub Desktop.
Shell/bash script for installing gearman server on debian-like linux
sudo bash
cd /usr/local/lib
wget http://launchpad.net/gearmand/trunk/0.18/+download/gearmand-0.18.tar.gz
tar -xvzf gearmand-0.18.tar.gz
cd gearmand-0.18/
apt-get install libboost-program-options-dev uuid-dev libevent-dev build-essential g++
./configure && sudo make && sudo make install
ldconfig
apt-get install php5-dev php-pear
pecl download gearman-0.7.0
tar -xvf gearman-0.7.0.tgz
cd gearman-0.7.0
phpize
./configure && make && make install
echo 'extension=gearman.so' > /etc/php5/conf.d/gearman.ini
gearmand -d -u root
@kachayev
Copy link
Author

kachayev commented Jul 5, 2011

build-essential and g++ should be added to apt-get install section

@kachayev
Copy link
Author

kachayev commented Jul 6, 2011

To install PECL extension we should install apt-get install php-pear

@kachayev
Copy link
Author

kachayev commented Jul 6, 2011

In order to use phpize we should install php5-dev package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment