- Lua Quick Start Guide
- Gabor Szauer
- 330字
- 2021-08-05 10:30:32
Installing Lua on Windows 10
Follow these steps to install Lua 5.2.4 on Windows 10. These instructions are written for Windows 10, but the steps needed to install should be similar on older (and future) versions of Windows as well:
- To download Lua 5.2.4, visit https://sourceforge.net/projects/luabinaries/files/5.2.4/.
- Click on the Tools and Executables link.
- On a 32-bit version of Windows, click the lua-5.2.4_Win32_bin.zip link to start downloading Lua. On a 64-bit version of Windows, click the lua-5.2.4_Win64_bin.zip link to start downloading.
- Once the file is downloaded, unzip the file. Unzipping the downloaded file should create four new files: lua52.dll, lua52.exe, luac52.exe, and wlua52.exe.
- Create a new folder inside C:\Program Files, and call this new folder LUA. Copy the four files you just unzipped into this directory.
- Rename lua52.exe to lua.exe. If your Windows installation is set up to hide file extensions, rename lua52 to lua:

- The path to Lua needs to be set up as an environment variable in Windows.
- Right-click on the Start/Windows menu button and select the System option.
- From the System window, select the Advanced Settings option.
- Having clicked the Advanced Settings option, you should now see the System Properties dialog. In this dialog, click on the Environment Variables... button.
- In the Environment Variables window, with the Path variable selected, click the Edit... button:

- Inside the Edit environment Variable window, click the New button and add C:\Program Files\LUA as a new path. Click the OK button to save changes and close this window. You can close all the windows we have opened up to this point.
- Lua should now be successfully installed on your computer. To verify the installation, you need to launch a new Command Prompt. You can launch Command Prompt by right-clicking the Windows Start/Windows button and selecting the Command Prompt item.
- In the newly opened Command Prompt, type lua -v. If everything is set up correctly, the command should print out the installed version of Lua (5.2.4):

推薦閱讀
- 程序設計與實踐(VB.NET)
- FreeSWITCH 1.8
- Linux C/C++服務器開發(fā)實踐
- 程序員面試筆試寶典
- Cassandra Data Modeling and Analysis
- Java設計模式及實踐
- 程序員修煉之道:通向務實的最高境界(第2版)
- C#程序設計
- Android玩家必備
- NGINX Cookbook
- 第一行代碼 C語言(視頻講解版)
- 計算機應用基礎教程(Windows 7+Office 2010)
- Spring技術內(nèi)幕:深入解析Spring架構(gòu)與設計原理(第2版)
- Tableau Desktop可視化高級應用
- Python Programming for Arduino