For me:
- I installed Cygwin in
C:\cygwin64\
downloaded libevent-2.0.22-stable
into C:\cygwin64\home\user1
cd libevent-2.0.22-stable
./configure
make
make install
-this creates .libs
folder and fills it with created output
I copied everything from C:\cygwin64\home\user1\libevent-2.0.22-stable\.libs
into C:\cygwin64\lib
but moved the .dll
files into C:\cygwin64\bin
I downloaded C:\cygwin64\home\user1\gearmand-1.1.12
and same trick again:
cd gearmand-1.1.12
./configure
make
make install
Hope this helps. You might want to also check this:
How can i install gearman php extension on Windows OS?
UPDATE: note, you might need to go for lower version, as higher ones can have some compilation problems, see https://gist.github.com/mnapoli/5270256
UPDATE 2: it's insanely hard to get the PECL extension work on Windows, and I've ended with this neat trick: get PEAR to work, then get pear install Net_Gearman-0.2.3
and in code that uses class GearmanClient
:
require_once("Net/Gearman/Client.php");
use Net_Gearman_Client as GearmanClient;
... new GearmanClient([$serverId]);