Created
June 13, 2011 14:53
-
-
Save kachayev/1022911 to your computer and use it in GitHub Desktop.
Shell/bash script for installing gearman server on debian-like linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
To install PECL extension we should install apt-get install php-pear
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
build-essential
andg++
should be added to apt-get install section