检查本机是否已经安装了lua
lua -bash: lua: command not found
2.官网下载安装包
http://www.lua.org/download.html
3.解压安装
make macosx test sudo make install
4.检查是否安装ok
localhost:lua-5.3.1 leo$ lua Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio >
到此lua环境就已经在本机安装好了。