I\'m trying to install Gearman with PHP Extension to use it with PHP-CLI.
I have a Debian 6.0.5 with php5-cli
and php-pear
installed.
to install Gearman with PHP Extension in Windows OS see How can i install gearman php extension on Windows OS?
debian
apt-get install libboost-all-dev
fedora
yum install boost-devel
debian
apt-get install gperf
fedora
yum install gperf
debian
apt-get install libevent-dev
fedora
yum install libevent-devel
debian
apt-get install uuid-dev
fedora
yum install uuid-devel
debian
apt-get install libcloog-ppl-dev
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz
tar -zxvf gearmand-1.1.12.tar.gz
cd gearmand-1.1.12
./configure
make
make install
pecl install gearman
http://hasin.me/2013/10/30/installing-gearmand-libgearman-and-pecl-gearman-from-source/
https://serverfault.com/questions/445904/how-to-install-libboost-devel-on-centos-6-3
https://serverfault.com/questions/528585/centos-yum-install-libevent-devel-conflict-with-compat-libevent
http://yupmin.net/install-gearmand-with-php-supervisor
https://gist.github.com/rafasashi/6f920d07909564bf8e4f
For Debian, you should try this line:
sudo apt-get install libgearman2
instead of:
sudo apt-get install libgearman-dev
http://www.masnun.com/2011/09/30/installing-and-getting-started-with-gearman.html
You can find thorough installation instructions for 0.8.3 here: http://blog.andyburton.co.uk/index.php/2012-12/gearman-0-41-with-mysql-persistent-storage-and-php-pecl-0-8-3-with-gearmanmanager-on-ubuntu-12-04/
I found the solution in this post installing-gearman-php-extension-on-debian-6.
On Debian 6 / squeeze you can only install up to version 0.8.3. If you want a newer version, you have to upgrade to wheezy.
Please try the steps mentioned here:
http://www.daredevel.com/php-jobs-with-gearman-and-supervisor/
thanks