简体   繁体   English

zeromq php 扩展 windows

[英]zeromq php extension for windows

I am using Zend server configured with IIS 7.5.我正在使用配置了 IIS 7.5 的 Zend 服务器。 I searched for edit: zeromq php extension, I found these http://valokuva.org/builds/ and http://snapshot.zero.mq/我搜索了编辑:zeromq php 扩展,我找到了这些http://valokuva.org/builds/Z80791B3AE7002CB88C246876D9FAA8qF8Z://snapshot.zero。

I have tried to add extension in php.ini and when I enable it form zend admin it shows an error "The system could not load this extension" and in logs "PHP Startup: Unable to load dynamic library 'C:\Program Files\Zend\ZendServer\lib\phpext\php_zmq.dll' - The specified module could not be found. in Unknown on line 0".我试图在 php.ini 中添加扩展,当我从 zend admin 启用它时,它显示错误“系统无法加载此扩展”并在日志中显示“PHP 启动:无法加载动态库'C:\Program Files\ Zend\ZendServer\lib\phpext\php_zmq.dll' - 找不到指定的模块。在第 0 行的未知中。

I have tried to build extension (.dll) from source but it also didn't work.我试图从源代码构建扩展(.dll),但它也没有工作。 On http://www.zeromq.org/bindings:php its writtenhttp://www.zeromq.org/bindings:php 上写着

You will first need to install the ØMQ (2.1.x or higher recommended)您首先需要安装 ØMQ(推荐 2.1.x 或更高版本)

Do I have to install something first on my machine to use this extension as there is only source available or am I placing the file incorrectly?我是否必须先在我的机器上安装一些东西才能使用这个扩展,因为只有可用的源,或者我是否错误地放置了文件?

Although I am running zeromq binding for python and is operating without problem.虽然我正在为 python 运行 zeromq 绑定并且运行没有问题。

Any help or guide is highly appreciated.非常感谢任何帮助或指导。

For anyone else looking for this, I found it at:对于其他寻找此内容的人,我在以下位置找到了它:

https://github.com/mkoppanen/php-zmq

Specifically:具体来说:

https://github.com/mkoppanen/php-zmq/issues/62
http://178.79.157.189/~mikko/win32/php-zmq-win32.zip

Try this, it works, I just uploaded it: https://github.com/Polycademy/php_zmq_binaries试试这个,有效,我刚刚上传了: https://github.com/Polycademy/php_zmq_binaries

--EDIT-- - 编辑 -

All ZMQ extensions are now in: http://windows.php.net/downloads/pecl/releases/zmq/所有 ZMQ 扩展现在都在: http://windows.php.net/downloads/pecl/releases/zmq/

I don't use ZMQ on Windows, but on Linux, it also requires the uuid extension.我不在 Windows 上使用 ZMQ,但在 Linux 上,它还需要 uuid 扩展。

There's also a problem with also having the ImageMagick extension installed, because the uuid clashes between them.安装 ImageMagick 扩展也存在问题,因为它们之间的 uuid 冲突。 Ensuring that you load zmq before imagik is an effective workaround to that however.但是,确保在 imagik 之前加载 zmq 是一种有效的解决方法。

I had the same problem.我有同样的问题。 Using dll from php-zmq_zeromq-{version}-zts folder fixed the problem for me.使用php-zmq_zeromq-{version}-zts文件夹中的 dll 为我解决了这个问题。

I finaly found!我终于找到了! Downloading from pear site [ http://pecl.php.net/package/zmq/1.1.1/windows]从梨网站下载 [ http://pecl.php.net/package/zmq/1.1.1/windows]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM