duannengling4705 2016-11-03 23:27
浏览 276

PHP ZMQ扩展:无法加载动态库

I'm working on Wampserver on Windows 10. I'm using an extension called ZMQ. I downloaded the DLLS from: https://pecl.php.net/package/zmq/1.1.3/windows

I previously used the version of the extension for PHP 5.6 and it worked. The extension however had a bug, so I decided to upgrade my php version to 7.0.4 and try the new version of the extension. The extension was successfully installed and it appears in the phpinfo(), but when I try to run "php -v" from the command line (or the CLI service that uses the extension), I get the following error: "Warning: PHP Startup: Unable to load dynamic library 'D:/wamp64/bin/php/php7.0.4/ext/php_zmq.dll' - The specified module could not be found. in Unknown on line 0"

The weird thing is the file "php_zmq.dll" actually exists in the specified path.

Important note: I have the line "extension=php_zmq.dll" in both my "D:\wamp64\bin\apache\apache2.4.18\bin\php.ini" and my "D:\wamp64\bin\php\php7.0.4\php.ini" (which to my understanding is used by the CLI). I can't remove either of those lines because then the extension is removed, or it doesn't work in the CLI.

  • 写回答

1条回答 默认 最新

  • douzong7283 2017-08-23 05:28
    关注

    I had the same problem. using PHP 7.0 x64 TS. I used the exact dll from pecl but same error. all my other extensions load fine and are in the same directory

    i followed all instructions on https://superuser.com/questions/585291/installing-zeromq-on-windows-7-wamp-server.

    the main updates would be to do the following:

    copy libzmq.dll and libsodium.dll to php root dir. (both are found in the pecl zip files.

    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站