Download and install Lua: (turn fromHere1. Download the latest version of Lua-5.3.1.tar.gzPlease click (http://www.lua.org/ftp/), then unzip
2. Run "terminal" to enter this folder, mainly CD "folder name"3. In "terminal" Enter make MacOSX (carriage return)
4. In "terminal" input make test (carriage return)
normally it will appear: Src/lua-v
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org,puc-rio
5. Then enter the "sudo make install" command, you will be asked to enter password: Enter the appropriate password (your password), and then enter the automatic installation
after the installation is complete, you can enter Lua-v, enter will see: Lua 5.3.1 Copyright (C) 1994-2015 lua.org, Puc-rioOK, the installation is successful!
IDE: Use sublime text2,google up here.
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 you can choose Lua on the tools-build system to compile the script (e.g.) PS: most of the online find is"cmd": ["Lua", "$file"]Maybe I'm using makefile to install LUA, and I need to change the path .
the editing and operating environment of LUA has been built.
Create a new Xxx.lua file, write a statement, choose LUA as the build system, click the flower +b, you can run out. At this point, the novice learns Lua's environment to build up
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Build Lua on MAC