You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install a Lua module, e.g. lpeg using Luarocks: luarocks install lpeg
Last step results in error:
$ luarocks install lpeg
Installing https://luarocks.org/lpeg-1.0.2-1.src.rock
lpeg 1.0.2-1 depends on lua >= 5.1 (5.4-1 provided by VM)
Error: failed making directory C:/tmp/msys64/mingw64/lib/luarocks/rocks-5.4/lpeg/1.0.2-1/conf
Expected behavior
Expected behavior is that the command luarocks install lpeg does install the Lua module lpeg without errors.
Actual behavior
Actual bahaviour is that the command luarocks install lpeg does not install the module lpeg and gives error on a fresh install of msys. This is a general error and does not depend on the concrete module lpeg which is only an example for the general situation.
$ type lua
bash: type: lua: not found
$ pacman -S mingw-w64-x86_64-lua
....
$ type lua
lua is /mingw64/bin/lua
$ lua -e 'print(require"lfs")'
C:\tmp\msys64\mingw64\bin\lua.exe: (command line):1: module 'lfs' not found:
$ lua -e 'print(require"lpeg")'
C:\tmp\msys64\mingw64\bin\lua.exe: (command line):1: module 'lpeg' not found:
$ pacman -S mingw-w64-x86_64-lua-luarocks
...
$ pacman -Q mingw-w64-x86_64-lua
mingw-w64-x86_64-lua 5.4.4-1
$ pacman -Q mingw-w64-x86_64-lua-luarocks
mingw-w64-x86_64-lua-luarocks 3.9.0-1
$ lua -e 'print(require"lfs")'
C:\tmp\msys64\mingw64\bin\lua.exe: (command line):1: module 'lfs' not found:
$ lua -e 'print(require"lpeg")'
C:\tmp\msys64\mingw64\bin\lua.exe: (command line):1: module 'lpeg' not found:
$ luarocks install lpeg
Installing https://luarocks.org/lpeg-1.0.2-1.src.rock
lpeg 1.0.2-1 depends on lua >= 5.1 (5.4-1 provided by VM)
Error: failed making directory C:/tmp/msys64/mingw64/lib/luarocks/rocks-5.4/lpeg/1.0.2-1/conf
Description / Steps to reproduce the issue
Steps to reproduce:
Install fresh MSYS2 into C:\tmp\msys64 (the crucial point is, that there are no lua modules, especially
luafilesystem
in the fresh install)Launch "MSYS2 MinGW x64" (MSYSTEM=MINGW64)
Install Lua
pacman -S mingw-w64-x86_64-lua
Install Luarocks
pacman -S mingw-w64-x86_64-lua-luarocks
Install a Lua module, e.g.
lpeg
using Luarocks:luarocks install lpeg
Last step results in error:
Expected behavior
Expected behavior is that the command
luarocks install lpeg
does install the Lua modulelpeg
without errors.Actual behavior
Actual bahaviour is that the command
luarocks install lpeg
does not install the modulelpeg
and gives error on a fresh install of msys. This is a general error and does not depend on the concrete modulelpeg
which is only an example for the general situation.I wrote more details here: #12002
Verification
Windows Version
MSYS_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
yes, I already did and wrote more details: see: #12002
The text was updated successfully, but these errors were encountered: