问题
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