Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build executable that requires luasec #5

Open
rcarmo opened this issue Jun 16, 2019 · 3 comments
Open

Can't build executable that requires luasec #5

rcarmo opened this issue Jun 16, 2019 · 3 comments

Comments

@rcarmo
Copy link

rcarmo commented Jun 16, 2019

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?

@jirutka
Copy link
Owner

jirutka commented Jun 28, 2019

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

@rcarmo
Copy link
Author

rcarmo commented Jun 28, 2019

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

@rcarmo
Copy link
Author

rcarmo commented Jul 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants