Lua is primarily used as an embedded language. In order to use it as a standalone language, you will need to install the Lua tool on your machine.
Lua Standalone Install
Here's the information from the official website:
You can also use the platform-specific package managers.
you can install
lua on Ubuntu using the apt tool:
$ sudo apt install lua5.4
You can do a quick check on the installation before moving on:
$ lua -v Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
Now that we have a development environment set up, let's try creating a simple program.
- Next Step: Creating the first program in Lua