Actualiser Lua installation on windows

2026-01-04 19:14:25 +01:00
parent 82d7651afd
commit 9d58fa7f6f

@@ -1,4 +1,12 @@
# msys2 # Install Lua on windows
There are two methods, one is (almost) automatic, and the other is more manual.
# "automatic" install
# "manual" install
## msys2
Install [msys2](https://www.msys2.org/) app. Install [msys2](https://www.msys2.org/) app.
@@ -10,7 +18,7 @@ add msys path in the environment
`C:\msys64\ucrt64\bin` `C:\msys64\ucrt64\bin`
# lua ## lua
copy lua somewhere copy lua somewhere
@@ -26,15 +34,17 @@ compile it
copy the files in lua dir (here `C:\lua`) copy the files in lua dir (here `C:\lua`)
`cp src/*.exe src/*.dll /c/lua/` ```
mkdir /c/lua/include
`cp -v src/lapi.h src/lauxlib.h src/lua.h src/luaconf.h src/lualib.h ../include/` cp src/*.exe src/*.dll /c/lua/`
cp -v src/lapi.h src/lauxlib.h src/lua.h src/luaconf.h src/lualib.h /c/lua/include/
```
add lua path in the env add lua path in the env
`C:\lua` `C:\lua`
# Luarocks ## Luarocks
download luarocks from [github](https://github.com/luarocks/luarocks/archive/refs/tags/v3.12.2.zip) download luarocks from [github](https://github.com/luarocks/luarocks/archive/refs/tags/v3.12.2.zip)