zeromq.node
zeromq.node copied to clipboard
Node not starting when using zmq
I'm porting my node application to another machine and I'm having troubles to start the webserver.
Whenever I add node app.js
in the shell to start it, it just doesn't do anything, doesn't show any error and quit the script:
The exact same version of my node application is working without troubes in other 2 machines. So I'm quite sure that the problem is no on the application itself, but in some missing software or dlls needed to run ZMQ.
Whenever I comment this line referencing ZMQ (and the related ones) the application runs as expected. It is only when I this line when the application is not able to run:
var zmq = require('zmq_rep');
What am I missing?
I'm trying to run it on Windows Server 2012 R2 Standard. 64 bits.
:+1: Requires attention. Having the same issue.
We've encountered the same issue. The problem can be manually fixed by running npm install
in the zmq folder, which probably fixes some kind of binary incompatibility issue. The program exists when the first zmq "binary" call is made in here: https://github.com/JustinTulloss/zeromq.node/blob/master/lib/index.js#L19
EDIT: We have installed ZeroMQ 4.4. using the installer from here: http://zeromq.org/distro:microsoft-windows - perhaps this causes some kind of problem as zeromq.node seems to use the 3.x version of ZeromQ?
The problem was that I had a compiled version of zmq which was not compatible with Windows 8. I had to compile it again... The funny thing is there was not a single error message...
I'm using Windows Server 2008 R2. Node.js shutdowns when trying to call this function (the first native ZeroMQ function): function zmqVersion() { [native code] }
This project has the DLLs embedded. Perhaps they're incompatible... I don't have a Windows box to do any testing on, but you could start looking there.
Fixed by installing Microsoft Visual C++ 2010 Redistributable Package (x64).
I think this should be mentioned in the documentation.