LuaRocks seems to assume 5.1 by default, how do I specify that I am using 5.2? Installed modules are installed in a 5.1 directory, and as such, Lua 5.2 can't find them.
I have found that the best way to do this is to build from source. Essentially, all you need to do is run
in the directory of the luarocks code, and then make build and then make install and you should be good to go