Install Lua under Mac (with: Rudix address: http://rudix.org)
Curl-s https://raw.githubusercontent.com/rudix-mac/rpm/2014.10/rudix.py | sudo python-install rudix -o https://raw.githubusercontent.com/rudix-mac/rpm/2014.10/rudix.pysudo Install rud
Then run the sudo rudix install LUA command to
It is so simple (hint: rudix.py address may change, can refer to Rudix address)!
Install ied:sublime Text 2[This sexy editor, great]
Run script: Sublime text2 above select: Input: {"cmd": ["/usr/local/bin/lua", "$file"], "File_regex": "^ (... *):( [0-9]*):? ([0-9]*) "," selector ":" Source.lua "} is saved as Lua.sublime-build, and then the Tools-build system can choose Lua to compile the script (such as) PS: Most of the online find is" cmd ": ["Lua", "$file"] maybe I'm using Rudix to install LUA automatically, need to change the path Lua's edit and run environment has been set up to create a new Xx.lua file, write a statement, choose LUA as the build system, click Command+b, can run out.
Build LUA Environment under Mac