/Lua-5.1

A guide on how to download & install Lua 5.1.5

Lua 5.1.5

Information

This is a tutorial on how to setup Lua 5.1.5.

Download

Tutorial

Step 1

  • Search for Edit the system environment variables or environment for short and open the panel with the corresponding name.

1

Step 2

  • Open the Advanced tab and click on Environment Variables at the bottom.

2

Step 3

  • Under the System section, open the Path tab by double clicking on it.

3

Step 4

  • Add the location of where you want to install Lua by pressing New, in my case I will install it in C:/Program Files/lua so I will write that at the new text box.

4

Step 5

  • Exit out of all the windows by pressing OK (don't exit out by X otherwise it won't save).

Step 6

  • Download the Lua rar file which can be found here.

Step 7

  • Open the location of choice (mine is C:/Program Files) and put the Lua rar file there and extract it. You should be left with a folder named lua inside, do not rename it, otherwise you will need to change the variable which Lua was saved under in the system environment variables.

5

5-2

Step 8

  • You're done! This is a bonus step just to run some tests but you don't have to if you don't want to.
  • Open the command prompt and type lua. If your command prompt looks like the picture below then you're good and you can run some experiments to see if everything is working fine.

image

image