我试过的...
# apt-get install php5-dev
# apt-get install gearman-job-server libgearman-dev
# pecl install gearman
结果 ...
...
configure: error: Please install libgearman
ERROR: `/tmp/pear/temp/gearman/configure' failed
比我试过...
# export GEARMAN_LIB_DIR=/usr/include/libgearman
# export GEARMAN_INC_DIR=/usr/include/libgearman
# pecl install gearman
结果 ...
...
configure: error: libgearman version 0.21 or later required
然后我试了...
# wget pecl.php.net/get/gearman-1.1.1.tgz
# tar -zxf gearman-1.1.1.tgz
# cd gearman-1.1.1
# phpize
结果...与尝试 2 相同的错误
怎么了?
Debian 6 只有 Gearman 0.13 版本。您要么需要升级它,要么找到旧版本的 PHP 扩展。您可以尝试从testing安装软件包。