Lua environment installation


Release date:2023-09-26 Update date:2023-10-13 Editor:admin View counts:209

Label:

Lua environment installation

Install on Linux system

It is very easy to install Lua on Linux & Mac. You only need to download thesource package and decompress and compile it on the terminal. Version 5.3.0 is used for installation in this article:

curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
tar zxf lua-5.3.0.tar.gz
cd lua-5.3.0
make linux test
make install

Install on Mac OS X system

curl -R -O http://www.lua.org/ftp/lua-5.3.0.tar.gz
tar zxf lua-5.3.0.tar.gz
cd lua-5.3.0
make macosx test
make install

Next, let’s create a HelloWorld.lua file, the code is as follows:

Powered by TorCMS (https://github.com/bukun/TorCMS).