Installing gearman PHP extension on Windows using cygwin and pecl

佐手、 提交于 2020-02-06 08:49:30

问题


There is only a handful of threads on installing gearman on Windows, especially the gearman PHP extension. I have not found a solution yet. If anyone found a solution to get gearman PHP extension working on Windows, please comment on this thread.

I came across this thread on pecl install gearman. When attempting to install Gearman PHP extension through cygwin using pecl, the installation failed with the following error.

$ pecl search gearman
Retrieving data...0%
Matched packages, channel pecl.php.net:
=======================================
Package Stable/(Latest) Local
gearman 1.1.2 (stable)        PHP wrapper to libgearman

$ 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.12 
No valid packages found 
install failed

I checked PHP version and it is 5.6.3. Where is that installed version 7.1.12 coming from?

$ php -v
PHP 5.6.31 (cli) (built: Jul  5 2017 22:24:51)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Related thread: How can i install gearman php extension on Windows OS?

来源:https://stackoverflow.com/questions/47822264/installing-gearman-php-extension-on-windows-using-cygwin-and-pecl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!