$ lua aįor more information and to learn how to write Lua programs, go to: $ vi aĪnd add the following code to the file. Using your favorite text editor, you can create your first Lua program as follows. Once you have installed it, run Lua interpretor as shown.
Then to build and install the latest release (version 5.3.4 at the time of this writing) of Lua, run the following commands to download the package tar ball, extract, build and install it. # dnf groupinstall "Development Tools" readline #Fedora 22+ # yum groupinstall "Development Tools" readline #RHEL/CentOS systems $ sudo apt install build-essential libreadline-dev #Debian/Ubuntu systems Install Lua from Sourcesįirst, ensure that you have development tools installed on your system, otherwise run the command below to install them. Note: The current version of Lua package in EPEL repository is 5.1.4 therefore to install the current release, you need to build and install it from source as explained below. # yum install epel-release & yum install lua #RHEL/CentOS systems $ sudo apt install lua5.3 #Debian/Ubuntu systems Lua package is available in official repositories of major Linux distributions, you can install the latest version using the appropriate package manager on your system.
Lua is a free and open source, powerful, robust, minimal and embeddable scripting language.