安装lua
wget https://lua.org/ftp/lua-5.3.6.tar.gz
make linux
make install INSTALL_TOP=/opt/lua5.3.6
安装luarocks
wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
./configure –prefix=/opt/lua5.3.6 –with-lua=/opt/lua5.3.6
环境变量配置
export LUA_PATH=/opt/lua5.3.6/share/lua/5.3/?.lua