Mac compiled from the source code installation is the most convenient, LUA source code less than 20,000 lines, compile a few seconds.
Open terminal, and enter the following command in turn:
Curl-r-O http://www.lua.org/ftp/lua-5.2.3.tar.gz
Tar zxf lua-5.2.3.tar.gz
CD lua-5.2.3
Make MACOSX Test
sudo make install (requires a power-on password after this command)
So Lua is installed in the/usr/local/bin directory.
Luaforwindows can be installed under Windows, it integrates many third-party libraries, but Lua is not the latest version.
To install the latest LUA, you can download the LUA binaries: http://luabinaries.sourceforge.net/download.html, after downloading the extracted files, add the corresponding folder path to the system path.
Like the toss can also compile their own source code, reference http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies
"Copyright Notice" Reproduced please specify the source: http://www.cnblogs.com/TenosDoIt/p/4178643.html
Windows & Mac Installation Lua