```bash apt-get update -q -q --yes apt-get install -q -q --yes lua5.4 liblua5.4-dev lua5.5 liblua5.5-dev luarocks lua -v # Lua 5.1.5 # even though we just installed 5.4 and 5.5, I think luarocks v3.13 fixes this. luarocks --version # /usr/bin/luarocks 3.8.0 # Not current >= 3.13.0 with valuable lua5.5 fixes. luarocks --lua-version=5.4 config | grep INC # --> "/usr/include/lua5.4", true luarocks --lua-version=5.5 config | grep INC # --> Nothing!!
# Let's manually set lua5.5's LUA_INCDIR and LUA_INCDIR_OK to be similar to lua5.4's... mkdir -p $HOME/.luarocks # required before setting luarocks config variables. luarocks --lua-version=5.5 config variables.LUA_INCDIR /usr/include/lua5.5 luarocks --lua-version=5.5 config variables.LUA_INCDIR_OK true luarocks --lua-version=5.5 config | grep INC # --> "/usr/include/lua5.5", true ```

