luapak icon indicating copy to clipboard operation
luapak copied to clipboard

Luapak seems to require "uname" which is not a valid command on Windows

Open StefanSchroeder opened this issue 5 years ago • 5 comments

I try to use luapak in Windows. I downloaded the Windows binary package 0.1.0 beta 5

Running luapak make yields:

The command "uname" was not found. main:1186: attempt to index a nil value (field 'LUAROCKS_UNAME_S') stack traceback: main:1186: in function main:1161 [C]: in function 'require' main:4507: in function main:4506 [C]: in function 'require' main:3896: in function main:3895 [C]: in function 'require' main:1202: in function main:1201 [C]: in function 'require' main:5341: in function main:5340 [C]: in function 'require' main:10587: in main chunk

StefanSchroeder avatar Nov 21 '19 19:11 StefanSchroeder

can confirm tried putting gnuwin32 coreutils uname.exe in the same folder and it worked https://sourceforge.net/projects/gnuwin32/files/coreutils/

got stuck in a new error message tho

luapak: error: Cound not find a downloader helper program, tried: curl, wget, fetch luapak: error: Cound not find a MD5 checksum calculator, tried: md5sum, openssl, md5

I tried putting the md5sum.exe from coreutils on the same folder as well and it did not work I'm using windows 10 which comes with curl installed by default

gustavooavila avatar Dec 14 '20 20:12 gustavooavila

same error for me also

ghost avatar Aug 09 '21 09:08 ghost

Luapak’s Windows support is designed for MSYS2/mingw environment/toolchain which provides needed tools for building native extensions and also uname command.

jirutka avatar Aug 09 '21 09:08 jirutka

as @gustavooavila said, after downloading uname there is more error

luapak: error: Cound not find a downloader helper program, tried: curl, wget, fetch luapak: error: Cound not find a MD5 checksum calculator, tried: md5sum, openssl, md5

ghost avatar Aug 10 '21 11:08 ghost

after downloading uname there is more error

Downloading uname? Please read my comment again:

Luapak’s Windows support is designed for MSYS2/mingw environment/toolchain which provides needed tools for building native extensions and also uname command.

It will not work without MSYS2/mingw. Windows doesn’t have any build toolchains by default and their native build toolchain is unusable for this.

jirutka avatar Aug 10 '21 14:08 jirutka