只介绍源码安装(适用于mac、linux、windows)。
安装版本:
lua:lua-5.3.4.tar.gz
luarocks:luarocks-3.9.1.tar.gz
luaJIT:LuaJIT-2.0.5.tar.gz
Mac安装非常简单
brew install lua
brew install luarocks
brew install LuaJIT
lua: http://www.lua.org/ftp/
luarocks: https://luarocks.github.io/luarocks/releases/
luaJIT: https://luajit.org/download.html
tar -xzvf lua-5.3.4.tar.gz
cd lua-5.3.4
make
make install
tar -xzvf luarocks-3.9.1.tar.gz
cd luarocks-3.9.1
./configure --prefix=/usr/local/luarocks --with-lua-include=/usr/local/lua/src
make
make install
make bootstrap
tar -xzvf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5
make
make install
export MACOSX_DEPLOYMENT_TARGET=12.0.1
luarocks install luasql-sqlite3
luarocks install luasql-postgres
luarocks install luasql-mysql
luarocks install luasql-sqlite
luarocks install luasql-odbc
luarocks install redis-lua