[zeromq-dev] ruby install problem
Chuck Remes
cremes.devlist at mac.com
Thu May 6 04:27:41 CEST 2010
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.
cr
On May 5, 2010, at 9:20 PM, Chuck Remes wrote:
> I installed a newer patch release of 1.8.7 (p249) and it now compiles. The perf tests work too.
>
> Sorry for the noise.
>
> cr
>
> On May 5, 2010, at 9:01 PM, Chuck Remes wrote:
>
>> I am trying to install zmq on OSX. I successfully built and installed the library. However, when I tried to build the ruby bindings, I got an error.
>>
>> http://gist.github.com/391694
>>
>> I'm usually pretty good at figuring this stuff out, but that error tells me *nothing* useful. I thought that perhaps it was a problem with using ruby 1.9.1, but I switched to 1.8.7 and had no luck there either.
>>
>>
>> Has anyone else run into this problem and solved it?
>>
>> cr
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list