我正在尝试安装gearman http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/
我下载了"libevent-2.0.21-stable.tar.gz“并解压缩到cygwin的home/libs目录(我自己创建了一个libs目录),其中也有"gearmand-1.1.5”。然后,在libevent目录中我这样做了:
./configure
make
make install安装libevent后,我切换到gearman目录,并执行了以下操作:
./configure这导致了"configure: error: Unable to find libevent“。有什么想法吗?谢谢。
发布于 2013-05-14 15:27:14
刚才,我解决了这个问题。这是因为当我们完成编译"libevent“时,它将生成./usr/local/lib中的lib文件。此路径未包含在环境变量-- path中。因此,我们必须将它复制到"usr/local/bin",然后,它就可以很好地工作了…
发布于 2016-03-23 23:58:00
yum install libevent-devel然后配置并制作
发布于 2018-02-23 01:10:14
对我来说:
C:\cygwin64\ 中安装了Cygwin
libevent-2.0.22-stable下载到C:\cygwin64\home\user1中cd libevent-2.0.22-稳定。/configure make make install
-this创建.libs文件夹,并用创建的输出
C:\cygwin64\home\user1\libevent-2.0.22-stable\.libs复制了所有内容但将.dll文件移动到C:\cygwin64\bin
C:\cygwin64\home\user1\gearmand-1.1.12中,并再次使用相同的技巧:cd gearmand-1.1.12./configure make install
希望这能有所帮助。您可能还需要检查以下内容:
How can i install gearman php extension on Windows OS?
更新:注意,您可能需要使用较低的版本,因为较高的版本可能会有一些编译问题,请参阅https://gist.github.com/mnapoli/5270256
更新2:让PECL扩展在Windows上工作非常困难,我以这个巧妙的技巧作为结束:让PEAR工作,然后获得pear install Net_Gearman-0.2.3和使用GearmanClient类的代码
require_once("Net/Gearman/Client.php");
use Net_Gearman_Client as GearmanClient;
... new GearmanClient([$serverId]);https://stackoverflow.com/questions/15785475
复制相似问题