I want to install both Lua 5.2 and 5.1 on my Linux computer. Is this just a matter of installing each version with the usual make linux install
or is there something else? In particular, I am worried about the header and library files, since those seem to go on directories that are not namespaced with the version number, such as /usr/local/include.
In addition to that, is it possible to set up Luarocks so that it can install both 5.1 and 5.2 libraries? I know that Luarocks namespaces things in a 5.2 or 5.1 directory, and setting LUA_PATH_5_X and LUA_CPATH_5_X variables should work for configuring Lua after that but I don't understand how Luarocks decides what version of Lua to compile the C libraries against.