[zeromq-dev] how to correctly setup erlzmq as dependency for erlang project with rebar?

Roman Shestakov romanshestakov at yahoo.co.uk
Mon Oct 17 21:45:55 CEST 2011


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/d02d939f/attachment.htm>


More information about the zeromq-dev mailing list