Lua is a very small scripting language, written by standard C, that makes it easy to call C + + or C + +. In addition, there is a Luajit, which is a compiler for LUA on some platforms.
We are only installing LUA here.
1. Detect if LUA is installed on your computer
In Terminal input:
Login - at: ttys000zfydemacbook-pro:~5.3. 3 1994- lua.org, puc-Rio
Because LUA is installed on my computer, the version number is displayed successfully. If it is not installed, it will prompt "command not found".
2. Go to Lua's official website to download the latest packaged code in tar.gz format
Http://www.lua.org/download.html
3.make Develop system and install
Make MacOSX sudo Make Install
4. Test whether the installation is successful or not and the version number is correct
Login - at: ttys000zfydemacbook-pro:~5.3. 3 1994lua.org , puc-Rio> message = ['HelloWorld' ]]> print (message)'HelloWorld'
5. View the LUA directory:
which Lua/usr/local/bin/lua
How LUA is installed on MacOS Systems