Closed issue by huglovefan on void-packages repository https://github.com/void-linux/void-packages/issues/25396 Description: * xuname: `Void 5.8.10_1 x86_64 GenuineIntel uptodate rrrmdFFF` * package: `luarocks-lua51-3.3.1_3`, `luarocks-lua52-3.3.1_3`, `luarocks-lua54-3.3.1_3` luarocks comes with some lua modules, but currently they're only installable for lua 5.3 one is documented to exist here: > https://github.com/luarocks/luarocks/wiki/Using-LuaRocks#multiple-versions-using-the-luarocks-package-loader > > Alternatively, you can load the LuaRocks module loader from Lua by issuing this command: > ``` > require "luarocks.loader" > ``` > If your system is correctly set up so that this command runs with no errors, subsequent calls to `require()` are LuaRocks-aware [...] but this only works with lua 5.3 in void reproduction steps: ```sh xbps-query -Rf luarocks-lua51 | grep /usr/share/lua/5.1/ xbps-query -Rf luarocks-lua52 | grep /usr/share/lua/5.2/ xbps-query -Rf luarocks-lua53 | grep /usr/share/lua/5.3/ # only this one outputs anything xbps-query -Rf luarocks-lua54 | grep /usr/share/lua/5.4/ xbps-install luarocks-lua52 luarocks-5.2 --local install dkjson # <-- installs to ~/.luarocks lua52 -e 'require("luarocks.loader") require("dkjson") print("success")' # <-- succeeds with 5.3 only ``` at least debian seems to include the same modules for all lua versions in the luarocks package: https://packages.debian.org/sid/all/luarocks/filelist