问题
I have XAMPP with PHP Version
PHP 7.1.13 (cli) (built: Jan 3 2018 20:16:04) ( ZTS MSVC14 (Visual C++ 2015) x86 ).
I want to install the ZeroMQ extension, which
- I downloaded from here http://pecl.php.net/package/zmq/1.1.3/windows specifically 7.1 Thread Safe (TS) x86
- moved the
php_zmq.dll
to the fileC:\xampp\php\ext
, and - wrote
extension=php_zmq.dll
into the fileC:\xampp\php\php.ini
, - wrote
C:\xampp\php\ext
in to WindowsPATH
,
but I still getting this error :
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_zmq.dll' - The specified module could not be found. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_zmq.dll' - The specified module could not be found. in Unknown on line 0
What could be the problem?
回答1:
I did the same as others suggested, but it still did not work. Then I noticed that there is one more .DLL file in the ZMQ ZIP file: libsodium.dll. When I copied this to the C:\xampp\php directory, it worked.
To summarize: files libsodium.dll
and libzmq.dll
must be copied to C:\xampp\php
directory.
回答2:
I have found out the solution - the libzmq.dll
file must be copied / moved to a directory, where the php.exe
file is.
So in my case to C:\xampp\php
来源:https://stackoverflow.com/questions/51031814/unable-to-load-dynamic-library-php-zmq-dll-the-specified-module-could-not-be-f