lua环境部署
0x01 环境
(1)下载lua
https://www.lua.org/
(2)windows集成环境
https://github.com/rjpcomputing/luaforwindows/releases/tag/v5.1.5-52
(3)lua在线体验
https://wiki.luatos.com/pages/emulator.html
0x02 ubuntu环境安装
mkdir /opt/apps
tar -zxvf lua-5.4.7.tar.gz -C /opt/apps
cd lua-5.4.7/
make linux test
make install
0x03 windows环境-scoop安装lua
#安装scoop
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
#若报错,则
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
scoop install lua
scoop install luarocks
luarocks包管理
进入:https://luarocks.org/搜索要使用的依赖
下载:https://sourceforge.net/projects/mingw/files/latest/download
添加gcc编译环境
添加环境变量C:\MinGW\bin
License:
杭州小单纯