luasec
luasec copied to clipboard
using libssl.so.1.1 with LuaSec 0.4.1
Hi, I'm using LuaSec 0.4.1 and getting below error in require function
luajit: error loading module 'ssl.core' from file '/usr/lib/arm-linux-gnueabi/lua/5.1/ssl/core.so': libssl.so.1.0.0: cannot open shared object file: No such file or directory stack traceback: [C]: at 0x0053e4f4 [C]: in function 'require' /tmp/test.lua:3: in main chunk [C]: at 0x004e6090
I have libssl.so.1.1 only available in /usr/lib/arm-linux-gnueabi/ and how to use libssl.so.1.1 to work with Luasec 0.4 version. Kernel version is 5 .
Code sample
module("ssl", package.seeall)
require("ssl.core")
require("ssl.context")
_VERSION = "0.4.1"
_COPYRIGHT = "LuaSec 0.4.1 - Copyright (C) 2006-2011 Bruno Silvestre\n" ..
"LuaSocket 2.0.2 - Copyright (C) 2004-2007 Diego Nehab"
Thanks, Mani
My guess: luasec was built using openssl 1.0.0 and your system has 1.1.0. You need to rebuild luasec with your correct library.