如何在Windows OS上安装Gearman php扩展?

问题描述:

请任何人帮助我在Windows XP上安装Gearman php扩展名.我在系统上安装了xampp 1.7.7,并且在系统上安装了Cygwin,libevent-1.4.14b-stable和gearmand.请让我知道安装gearman-1.0.2 php扩展还需要什么.当我在cygwin终端上运行gearman-1.0.2时,找不到命令抛出错误.

Please anybody help me out in installing gearman php extension on windows xp. I have xampp 1.7.7 installed on my system and i have installed Cygwin, libevent-1.4.14b-stable and gearmand on my system. Please let me know what more is needed to install gearman-1.0.2 php extension. As when i run the gearman-1.0.2 on cygwin terminal throwing error of command not found.

要在CentOS或Debian中使用PHP Extension安装Gearman,请参见 如何使用PHP Extension安装Gearman

to install Gearman with PHP Extension in CentOS or Debian see How to install Gearman with PHP Extension

安装和更新Cygwin软件包

来自: https://cygwin.com/install.html

安装最新的GCC并通过Cygwin制作

通过Cygwin安装wget

安装libevent

   wget https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
    tar -zxvf libevent-2.0.22-stable.tar.gz
    cd libevent-2.0.22-stable
    ./configure
    make
    make install

安装gearmand和libgearman

wget https://github.com/gearman/gearmand/archive/1.1.12.tar.gz
tar -zxvf gearmand-1.1.12.tar.gz
cd gearmand-1.1.12
./configure
make
make install

安装pecl-gearman

pecl install gearman

资源

​​ Cygwin找不到bash命令

https://gist.github.com/mnapoli/5270256

如何使用PHP Extension安装Gearman