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
![](https://i-blog.csdnimg.cn/blog_migrate/9a4b32b7a82aeedc2aed557606043b4e.png)
yum install boost-devel.x86_64 boost -y
![](https://i-blog.csdnimg.cn/blog_migrate/eb5e220710df9c62269c0c55bab81285.png)
yum install gperf.x86_64 -y
![](https://i-blog.csdnimg.cn/blog_migrate/e4be40048b30480ee85d96f758d92210.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/c6b899ef17b9995fe9f7d72e09de86f2.png)
./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-gearman=/usr/local/webserver/gearman/