jirutka / luapak

Easily build a standalone executable for any Lua program
MIT License
200 stars 7 forks source link

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

Open StefanSchroeder opened 4 years ago

StefanSchroeder commented 4 years ago

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 [C]: in function 'require' main:4507: in function [C]: in function 'require' main:3896: in function [C]: in function 'require' main:1202: in function [C]: in function 'require' main:5341: in function [C]: in function 'require' main:10587: in main chunk

gustavooavila commented 3 years ago

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

ghost commented 3 years ago

same error for me also

jirutka commented 3 years ago

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

ghost commented 3 years ago

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

jirutka commented 3 years ago

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.