luapak
luapak copied to clipboard
Can't build executable that requires luasec
I have this simple repro testcase that uses lua-requests
:
local requests = require("requests")
print("go")
do
local res = requests.get("http://192.168.1.1")
return print(res.text)
end
...with this .rockspec
:
package = "fennel-http"
version = "scm-1"
source = {
url = ""
}
description = {
homepage = "",
license = ""
}
dependencies = {
"lua >= 5.1, < 5.4",
"lua-requests"
}
build = {
type="builtin",
modules = {
request = "request.lua",
},
install = {
bin = {
"request.lua"
}
}
}
Somehow luapak
can't get lua-requests
installed into .luapak
.
Running:
% luapak make --lua-lib=/usr/lib/x86_64-linux-gnu/liblua5.1.a
..gives me this:
lua-requests 1.2-1 depends on luasec >= 0.5.1 (not installed)
Installing https://luarocks.org/luasec-0.8-1.src.rock
luapak: error: Failed to build /mnt/c/....rockspec: Failed installing dependency: https://luarocks.org/lua-requests-1.2-1.src.rock - Failed installing dependency: https://luarocks.org/luasec-0.8-1.src.rock - Failed copying ssl.so
Any ideas?
According to the path, you’re running this on Windows, right? In what environment exactly – cygwin, MinGW, something different?
I’m running that in the Ubuntu Linux subsystem, and get exactly the same results in Ubuntu 18.04.
Hi there. Any luck with this? I've tried on a fresh VM, and it still doesn't work for me.