luasec fails in 5.1 and 5.2 but OK in 5.3

632 Views Asked by At

I'm installing LuaSec 0.9 via LuaRocks 3.3.1 with OpenSSL 1.1.1g (via MacPorts).

I use luarocks install OPENSSL_DIR=/opt/local luasec

The compilation/installation is successful for Lua 5.1, 5.2, and 5.3

However, when I attempt to use it, I get errors, as follows:

  1. Lua 5.1
  • dlopen(/usr/local/lib/lua/5.1/ssl.so, 2): Symbol not found: _luaL_checkversion_
  1. Lua 5.2
  • dlopen(/usr/local/lib/lua/5.2/ssl.so, 6): Symbol not found: _lua_rotate
  1. Lua 5.3
  • success
1

There are 1 best solutions below

2
LiamF On

Turns out this is not a luasec or Lua issue; it's an issue with LuaRocks after upgrading to the latest version. The situation has been resolved; see here.