[zeromq-dev] ruby install problem

Martin Sustrik sustrik at 250bpm.com
Thu May 6 09:52:07 CEST 2010


Chuck Remes wrote:
> FYI, I had to comment out one line to get a clean compile.
> 
>     //  TODO: P2P is to be removed.
>     rb_define_const (zmq_module, "P2P", INT2NUM (ZMQ_P2P));
>    // rb_define_const (zmq_module, "PAIR", INT2NUM (ZMQ_PAIR));  // was causing a compile failure
>     rb_define_const (zmq_module, "SUB", INT2NUM (ZMQ_SUB));
>     rb_define_const (zmq_module, "PUB", INT2NUM (ZMQ_PUB));
>     rb_define_const (zmq_module, "REQ", INT2NUM (ZMQ_REQ));
> 
> cremes$ make
> g++ -I. -I. -I/Users/cremes/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/i686-darwin10.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -g -O2 -pipe -fno-common    -c rbzmq.cpp
> rbzmq.cpp: In function ‘void Init_zmq()’:
> rbzmq.cpp:301: error: ‘ZMQ_PAIR’ was not declared in this scope
> make: *** [rbzmq.o] Error 1
> 
> 
> I'm guessing that ZMQ_PAIR is not part of the 2.0.6 library so it couldn't find it. Anyway, easy fix.

Yes. New release should be made soon so that bindings can get into sync.

Martin



More information about the zeromq-dev mailing list