Install Lua 5.4

Step-by-step guide to installing Lua 5.4 on Windows, macOS, and Linux. Lua is the only runtime Luax Pro needs.

Install Lua 5.4

What Is Lua?

Lua is a small, fast programming language. Luax Pro is written entirely in Lua, which means you need Lua installed on your computer to run it. The entire Lua interpreter is less than 1MB, so this installation takes less than two minutes.

Check If Lua Is Already Installed

Open your terminal (Command Prompt on Windows, Terminal on macOS/Linux) and type:

lua -v

If you see something like Lua 5.4.6, you already have Lua and can skip to the next guide. If you see command not found, continue below.

Windows Installation

If you have Chocolatey installed, run this command in an Administrator Command Prompt:

choco install lua

Option B: Manual Download

1. Go to luabinaries.sourceforge.net

2. Download the Windows x64 binary for Lua 5.4

3. Extract the ZIP file to C:\lua

4. Add C:\lua to your system PATH:

  • Right-click "This PC" → Properties → Advanced system settings
  • Click "Environment Variables"
  • Under "System variables", find Path, click Edit
  • Click New, type C:\lua, click OK

5. Close and reopen Command Prompt, then verify with lua -v

macOS Installation

Open Terminal and run:

brew install lua

If you do not have Homebrew, install it first:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then run brew install lua again.

Verify Installation

lua -v

You should see Lua 5.4.x.

Linux Installation

Ubuntu / Debian

sudo apt update
sudo apt install lua5.4

Fedora / CentOS

sudo dnf install lua

Arch Linux

sudo pacman -S lua

Verify Installation

lua -v

If `lua -v` Still Fails

If the command does not work after installation, your PATH is not set correctly. On Linux/macOS, find where Lua was installed:

which lua5.4

If it returns /usr/bin/lua5.4, create a symlink:

sudo ln -s /usr/bin/lua5.4 /usr/local/bin/lua

Then try lua -v again.

What's Next

Now that Lua is installed, the next guide covers downloading Luax Pro from Gumroad and preparing your project folder.