[zeromq-dev] errors building / tesing erlang binding

Roman Shestakov romanshestakov at yahoo.co.uk
Tue Oct 18 00:42:34 CEST 2011


hello,

I am new to zeromq and so far I don't seem to be able to get erlang binding building correctly under MacOs Lion.

getting the following errors while doing make test:



bash-3.2$ make test
==> erlzmq2 (compile)
make[1]: Nothing to be done for `all'.
==> erlzmq2 (eunit)
Compiled src/erlzmq.erl
Compiled src/erlzmq_nif.erl
Compiled test/erlzmq_test.erl

=ERROR REPORT==== 17-Oct-2011::23:37:23 ===
The on_load function for module erlzmq_nif returned {error,
                                                     {load_failed,
                                                      "Failed to load NIF library: 'dlopen(/Users/romanshestakov/ERL_LIBS/erlzmq2/.eunit/../priv/erlzmq_drv.so, 2): no suitable image found.  Did find:\n\t/Users/romanshestakov/ERL_LIBS/erlzmq2/.eunit/../priv/erlzmq_drv.so: mach-o, but wrong architecture'"}}
undefined
*** test module not found ***
::erlzmq_nif

any ideas?

Regards, Roman




________________________________
From: Roman Shestakov <romanshestakov at yahoo.co.uk>
To: "zeromq-dev at lists.zeromq.org" <zeromq-dev at lists.zeromq.org>
Sent: Monday, 17 October 2011, 20:45
Subject: how to correctly setup erlzmq as dependency for erlang project with rebar?


hi, 


I am trying to setup erlzmq as dependency for my erlang project managed by rebar


I have the following in my rebar.config


 {'erlzmq', ".*", {git, "git://github.com/zeromq/erlzmq2.git", "master"}}

but the problem is though rebar is able to pull erlzmq from git, it fails to build it.
getting the following errors:

bash-3.2$ make
rebar get-deps
==> erlsom (get-deps)
==> detergent (get-deps)
==> mochiweb (get-deps)
==> log4erl (get-deps)
==> rel (get-deps)
==> betfairgateway (get-deps)
Pulling erlzmq from {git,"git://github.com/zeromq/erlzmq2.git","master"}
Cloning into erlzmq...
==> erlzmq (get-deps)
rebar compile
==> erlsom
 (compile)
==> detergent (compile)
==> mochiweb (compile)
==> log4erl (compile)
==> erlzmq (compile)
Compiled src/erlzmq_nif.erl
Compiled src/erlzmq.erl
Compiling c_src/erlzmq_nif.c
c_src/erlzmq_nif.c:24:17: error: zmq.h: No such file or directory
c_src/erlzmq_nif.c:70: error: expected specifier-qualifier-list before 'zmq_msg_t'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_context':
c_src/erlzmq_nif.c:140: warning: implicit declaration of function 'zmq_init'


so, the question is how to correctly setup the rebar to make sure that erlzmq is automatically built with make?

Regards, Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111017/96625a14/attachment.htm>


More information about the zeromq-dev mailing list