Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Does ZeroMQ work under windows?

by chrestomanci (Priest)
on Mar 22, 2012 at 17:27 UTC ( #961063=perlquestion: print w/replies, xml ) Need Help??
chrestomanci has asked for the wisdom of the Perl Monks concerning the following question:

Greetings wise brothers.

I am working on a project where I need to send a large number of short messages between a Windows system (in a VM) and a linux server. The messages will mostly be 100 bytes or so, but might be sent at up to 100/second, so I need to send them with low overhead. I don't care if they get re-ordered as I will be time stamping them anyway, but I don't want any messages to get lost.

In a previous version of the project, I was using Net::Stomp (Using the AMQP protocol), the problem was that I needed to run a fairly heavy weight broker, and some messages went missing, so I am looking for something a bit more lightweight.

I came across ZeroMQ, and found some perl bindings on CPAN. It looks to fill the light weight and no broker requirement, but it looks like installing it under windows is tricky. I found This issue on the ZeroMQ bug tracker, where users had had all sorts of trouble getting it to compile and run under Windows. It is also not available for Active State perl.

Has anyone else had any experiences of ZeroMQ under windows? Can it be made to work reliably? Is there a pure Perl implementation of ZeroMQ? The wire protocol looks simple enough.

I am currently using Active State Perl 5.12 though I would switch to using Strawberry perl if that would work better. I would prefer not to use Cygwin perl.

Replies are listed 'Best First'.
Re: Does ZeroMQ work under windows?
by lha404 (Initiate) on Jul 02, 2012 at 10:07 UTC
    There appear to be binary installers for the libraries This make make using 0mq on windows a little less of a pain.
Re: Does ZeroMQ work under windows?
by DaniBunny (Initiate) on Aug 27, 2013 at 17:45 UTC

    I recently was on the same quest.

    I was able to install the ZeroMQ binaries and C library with success using the refered installer for Windows. Than i went on a quest to build the perl module ( ZMQ::LibZMQ3 and ZMQx::Class ). No success.

    I was able to build some eccentric modules on Windows in the past ( like Finance::TA ), but i was beaten this time. It seems that there are some bugs on the Windows build of ZeroMQ ( not surprised ) that makes the build impossible.

    There are open tickets with the developers of ZeroMQ modules to get down on this. Im watching... :-)

    I'm sticking with AnyEvent sockets for now.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://961063]
Approved by ww
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2018-06-20 14:05 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.