luapak icon indicating copy to clipboard operation
luapak copied to clipboard

Can't build executable that requires luasec

Open rcarmo opened this issue 5 years ago • 3 comments

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?

rcarmo avatar Jun 16 '19 18:06 rcarmo

According to the path, you’re running this on Windows, right? In what environment exactly – cygwin, MinGW, something different?

jirutka avatar Jun 28 '19 00:06 jirutka

I’m running that in the Ubuntu Linux subsystem, and get exactly the same results in Ubuntu 18.04.

rcarmo avatar Jun 28 '19 10:06 rcarmo

Hi there. Any luck with this? I've tried on a fresh VM, and it still doesn't work for me.

rcarmo avatar Jul 09 '19 17:07 rcarmo