Simple guide for zeromq 3.2.2 on Ubuntu 14.04 with Lua 5.2

simple guide for zeromq configuration, my system is Ubuntu 14.04 and Lua 5.2.

Install zeromq

wget https://github.com/zeromq/zeromq3-x/releases/download/v3.2.2/zeromq-3.2.2.tar.gz
tar -zxvf zeromq-3.2.2.tar.gz
cd zeromq-3.2.2
./configure  --prefix=/usr/local/zeromq
make -j24
make install

Install lua-zmq

luarocks install dkjson
luarocks install https://raw.github.com/Neopallium/lua-llthreads/master/rockspecs/lua-llthreads-scm-0.rockspec
luarocks install https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-scm-1.rockspec ZEROMQ_LIBDIR=/usr/local/zeromq/lib ZEROMQ_INCDIR=/usr/local/zeromq/include
luarocks install https://raw.github.com/Neopallium/lua-zmq/master/rockspecs/lua-zmq-threads-scm-0.rockspec

The guide can avoids some compile errors.

3 Likes

Thanks. I’m also using Ubuntu 14.04 with Lua 5.2.
The “Install zeromq” process worked beautifully. However “luarocks install dkjson” produces “Error: No results matching query were found”. I was wondering whether you encountered this and how you resolved it.
Thanks aqain.
Terence

Please disregard my previous request. For some reason installation required sudo!