root: sudo pecl install gearman
pecl/gearman requires PHP (version >= 5.1.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.1.17
No valid packages found
install failed
需要从源码编译安装
安装gearman
https://github.com/gearman/gearmand/releases
下载1.18版本
根据readme里的步骤进行安装
https://github.com/gearman/gearmand
#大写V
gearmand -V
安装pecl-gearman
https://github.com/wcgallego/pecl-gearman
下载2.0.3版本
根据readme里的步骤进行安装
https://github.com/wcgallego/pecl-gearman
注意事项
步骤不要弄错, 否则会报错, 如果安装错了, 请先卸载, 再安装
卸载
make distclean
常见卸载的target有 uninstall/distclean/veryclean