One, LUA installation package download
Go to LUA official website lua.org Download the latest version of Lua-5.2.3.tar.zip, as shown in the arrows:
Second, installation Lua-5.2.3
Enter the download directory for Lua-5.2.3.tar.zip (my is below the Lua_dev folder under SSD disk), perform the following steps to install:
The installation process may have to enter the system permissions password, enter your password, return, and then you can install . This will allow the LUA to be installed directly
Down to the/usr/local/bin.
after the installation is complete, type in the terminal: lua-v after Enter, see:Lua 5.2.3 Copyright (C) 1994-2013 lua.org, Puc-rio
Here, LUA installs successfully!
Three, IDE configuration
I personally like to use the sublime Text2 editor.
Open Sublime Text2, Tools--build system--New build system ... Then enter:
The file is saved as Lua.sublime-build, and then tools---build System can see the LUA selection Interface (4), and the Lua is selected to compile the foot
This. The LUA editing environment is built. Figure:
Iv. Writing code tests
Create a new Xxx.lua file, write a LUA statement, and choose Lua as the build System.
Press the following: Windows logo key + B , then you can run up. as follows:
Ok! This is how the LUA environment is built. I'm sure you can finish it soon!
LUA development environment construction under MAC system