wget https://launchpadlibrarian.net/165674261/gearmand-1.1.12.tar.gz
tar zxf gearmand-1.1.12.tar.gz
cd gearmand-1.1.12
./configure --prefix=/usr/local/webserver/gearman
yum install boost-devel.x86_64 boost -y
yum install gperf.x86_64 -y
yum install libuuid-devel -y
./configure --prefix=/usr/local/webserver/gearman
make && make install
php拓展
wget http://pecl.php.net/get/gearman-1.1.2.tgz
tar zxf gearman-1.1.2.tgz
cd gearman-1.1.2
phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-gearman=/usr/local/webserver/gearman/