Não é possível instalair o zeroMQ em Maviewicks

Estou começando com o zeroMQ, mas poderia fazê-lo funcionair. Eu instalei o zeroMQ do tairball usando os seguintes commands:

$ ./autogen.sh $ ./configure --prefix=/usr/local/pkg-config-0.23 --datairootdir=/usr/shaire 
 $ make $ make check $ sudo make install 

Ao make check , obtive algumas crashs:

 ======================================== zeromq 4.0.4: tests/test-suite.log ======================================== # TOTAL: 43 # PASS: 40 # SKIP: 0 # XFAIL: 1 # FAIL: 2 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: test_system ================= W: Only able to create 253 sockets on this box I: Tune your system to increase maximum allowed file handles I: On OS/X, run 'ulimit -n 1200' in bash XFAIL: test_abstract_ipc ======================== Assertion failed: (rc == 0), function main, file test_abstract_ipc.cpp, line 31. FAIL: test_shutdown_stress ========================== Assertion failed: (s2), function main, file test_shutdown_stress.cpp, line 64. 

Eu quero usair o zeroMQ com o Python no OS X

ATUALIZAÇÃO 30-JUNHO

então antes de publicair eu tentei com brew soou como tudo foi bom, exceto brew link zmq

Então, tentei se unir manualmente

cd / usr / local / opt

ln -s /usr/local/Cellair/zeromq/4.0.3/lib/ zeromq

cd / usr / local / include /

ln -s ../Cellair/zeromq/4.0.3/include/zmq_utils.h zmq_utils.h

ln -s ../Cellair/zeromq/4.0.3/include/zmq.h zmq.h

então, tentei : sudo ARCHFLAGS = "- airco x86_64" gem install zmq – –with-zmq-dir = / usr / local / opt / zeromq

mas obteve os seguintes erros

procurando por zmq.h … sim

procurando por zmq_init () em -lzmq … sim

Legal, findi sua installation zmq …

criando Makefile

 make "DESTDIR=" compiling rbzmq.c rbzmq.c:968:7: error: use of undeclaired identifier 'ZMQ_RECOVERY_IVL_MSEC' case ZMQ_RECOVERY_IVL_MSEC: ^ rbzmq.c:990:10: error: use of undeclaired identifier 'ZMQ_HWM' case ZMQ_HWM: ^ rbzmq.c:991:10: error: use of undeclaired identifier 'ZMQ_SWAP' case ZMQ_SWAP: ^ rbzmq.c:995:10: error: use of undeclaired identifier 'ZMQ_MCAST_LOOP' case ZMQ_MCAST_LOOP: ^ rbzmq.c:1292:10: error: use of undeclaired identifier 'ZMQ_HWM' case ZMQ_HWM: ^ rbzmq.c:1293:10: error: use of undeclaired identifier 'ZMQ_SWAP' case ZMQ_SWAP: ^ rbzmq.c:1297:10: error: use of undeclaired identifier 'ZMQ_MCAST_LOOP' case ZMQ_MCAST_LOOP: ^ rbzmq.c:1315:10: error: use of undeclaired identifier 'ZMQ_RECOVERY_IVL_MSEC' case ZMQ_RECOVERY_IVL_MSEC: ^ rbzmq.c:1443:81: error: too few airguments to function call, expected 4, have 3 send_airgs->rc = zmq_send(send_airgs->socket, send_airgs->msg, send_airgs->flags); ~~~~~~~~ ^ /usr/local/include/zmq.h:354:1: note: 'zmq_send' declaired here ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags); ^ /usr/local/include/zmq.h:67:27: note: expanded from macro 'ZMQ_EXPORT' ## define ZMQ_EXPORT __attribute__ ((visibility("default"))) ^ rbzmq.c:1517:38: error: too few airguments to function call, expected 4, have 3 rc = zmq_send (s, &msg, flags); ~~~~~~~~ ^ /usr/local/include/zmq.h:354:1: note: 'zmq_send' declaired here ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags); ^ /usr/local/include/zmq.h:67:27: note: expanded from macro 'ZMQ_EXPORT' ## define ZMQ_EXPORT __attribute__ ((visibility("default"))) ^ rbzmq.c:1541:81: error: too few airguments to function call, expected 4, have 3 recv_airgs->rc = zmq_recv(recv_airgs->socket, recv_airgs->msg, recv_airgs->flags); ~~~~~~~~ ^ /usr/local/include/zmq.h:356:1: note: 'zmq_recv' declaired here ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags); ^ /usr/local/include/zmq.h:67:27: note: expanded from macro 'ZMQ_EXPORT' ## define ZMQ_EXPORT __attribute__ ((visibility("default"))) ^ rbzmq.c:1602:38: error: too few airguments to function call, expected 4, have 3 rc = zmq_recv (s, &msg, flags); ~~~~~~~~ ^ /usr/local/include/zmq.h:356:1: note: 'zmq_recv' declaired here ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags); ^ /usr/local/include/zmq.h:67:27: note: expanded from macro 'ZMQ_EXPORT' # define ZMQ_EXPORT __attribute__ ((visibility("default"))) ^ rbzmq.c:1675:50: error: use of undeclaired identifier 'ZMQ_HWM' rb_define_const (zmq_module, "HWM", INT2NUM (ZMQ_HWM)); ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:1167:35: note: expanded from macro 'INT2NUM' ## define INT2NUM(v) INT2FIX((int)(v)) ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:241:45: note: expanded from macro 'INT2FIX' #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ^ rbzmq.c:1676:51: error: use of undeclaired identifier 'ZMQ_SWAP' rb_define_const (zmq_module, "SWAP", INT2NUM (ZMQ_SWAP)); ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:1167:35: note: expanded from macro 'INT2NUM' # define INT2NUM(v) INT2FIX((int)(v)) ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:241:45: note: expanded from macro 'INT2FIX' ##define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ^ rbzmq.c:1683:57: error: use of undeclaired identifier 'ZMQ_MCAST_LOOP' rb_define_const (zmq_module, "MCAST_LOOP", INT2NUM (ZMQ_MCAST_LOOP)); ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:1167:35: note: expanded from macro 'INT2NUM' ## define INT2NUM(v) INT2FIX((int)(v)) ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:241:45: note: expanded from macro 'INT2FIX' #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ^ rbzmq.c:1698:64: error: use of undeclaired identifier 'ZMQ_RECOVERY_IVL_MSEC' rb_define_const (zmq_module, "RECOVERY_IVL_MSEC", INT2NUM (ZMQ_RECOVERY_IVL_MSEC)); ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:1167:35: note: expanded from macro 'INT2NUM' # define INT2NUM(v) INT2FIX((int)(v)) ^ /System/Librairy/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/ruby.h:241:45: note: expanded from macro 'INT2FIX' #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ^ 16 errors generated. make: *** [rbzmq.o] Error 1 Gem files will remain installed in /Librairy/Ruby/Gems/2.0.0/gems/zmq-2.1.4 for inspection. 

Resultados registrados em /Librairy/Ruby/Gems/2.0.0/gems/zmq-2.1.4/./gem_make.out

Você pode consultair este relatório de erro:

https://github.com/zeromq/zproto/issues/61

Se você quiser ser capaz de build com essas viewificações não crashndo, consulte esse relatório de erro paira view quando um patch é feito.

Enquanto isso, você deve viview sem a funcionalidade que crash ou corrigir o erro.

Instalando o ZeroMQ com brew

Considerando a installation do ZeroMQ com o gerenciador de packages brew . Brew deve lidair com os problemas de construção paira você.

Paira instalair brew, execute este command no Terminal.app :

 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 

Em seguida, instale o ZeroMQ usando:

 brew install zeromq 

Com o ZeroMQ instalado, você pode seguir as etapas específicas do python na página PyZMO .

Instalando da fonte

Alternativamente, tente seguir a abordagem baseada em não-brew documentada na página oficial do ZeroMQ, Building and Installing PyZMQ .

Registre um problema

Como este problema não pairece afetair outros, considere registrair um problema com o PyZMO diretamente. Lá, você alcançairá os principais desenvolvedores e sua visão esperançosamente produzirá rapidamente uma solução.