- Visit https://www.msys2.org/
- Click on the link next to "Download the installer"
- Run the installer
- Add "C:\msys64\usr\bin" to path
- Add "C:\msys64\mingw64\bin" to path
- Open cmd.exe
- Run
pacman -S pacman -S mingw64/mingw-w64-x86_64-gcc
- Confirm with enter key
- Visit http://www.lua.org/
- Click on "download"
- Click on "get a binary"
- Click on "download"
- Click on lua-<version>_Win64_bin.zip e.g. lua-5.4.2_Win64_bin.zip or lua5_1_5_Win64_bin.zip (we will install 5.1.x for compatibility with love2d)
- Create folder C:\lua
- Extract content into C:\lua (exe files should be in C:\lua)
- Rename lua<version>.exe into lua.exe
- Add C:\lua to PATH
- Create C:\lua\include and C:\lua\lib folders
- Return to the lua download page in your browser
- Click on "LuaBinaries <version> - Release X"
- Navigate to "Windows Libraries\Dynamic"
- Download "lua-<version>_Win64_dllw6.zip"
- Copy include files into C:\lua\include
- Copy lib files into C:\lua\lib
- Visit https://luarocks.org/
- Click on "install"
- Click on "Windows all-in-one executable (64-bit)"
- Download file
- Extract exe files into C:\lua
- Add "%appdata%\luarocks\bin" to PATH
- Delete old config: remove luarocks folder in %localappdata% and %appdata%
- Open cmd.exe
- Run
luarocks config variables.LUA_INCDIR C:\lua\include
- Run
luarocks config variables.LUA_LIBDIR C:\lua\lib
- Run
luarocks config variables.CC gcc
- Run
luarocks config variables.LD gcc
- Run
luarocks
-> there should be no config errors left
- Try to install something with luarocks e.g. in cmd.exe run
"luarocks install tl
-> should compile and install tl without errors - Run
tl