I can run most examples from the zguide successfully. But an example that uses Poller fails with this:
[machs Lua:master]$ lua rrbroker.lua
lua: /usr/local/lib/luarocks/share/lua/5.1/zmq/poller.lua:97: attempt to call field 'ZMQ_Poller' (a nil value)
/usr/local/lib/luarocks/share/lua/5.1/zmq/poller.lua:97: in function
(tail call): ?
rrbroker.lua:18: in main chunk
I have zeromq 2.1.7 installed, and had just installed luarocks using "https://github.com/Neopallium/lua-zmq/raw/master/rockspecs/lua-zmq-scm-1.rockspec".
Edit, Solved: I probably had multiple versions of zmq.so in the path]
Please make sure you un-install all other version of lua-zmq. You may have to manually remove the "zmq.so" Lua module from Lua's LUA_CPATH search path.
One way to see which "zmq.so" file is being loaded is with strace:
strace -e trace=open lua rrbroker.lua 2>&1 | grep zmq.so