Ledge is not compatible with Openresty
When installing Ledge through OPM or Luarocks both result in the following error.
nginx: [error] init_by_lua error: /usr/local/openresty/site/lualib/ffi-zlib.lua:98: libz.so: cannot open shared object file: No such file or directory
stack traceback:
[C]: in function 'load'
/usr/local/openresty/site/lualib/ffi-zlib.lua:98: in main chunk
[C]: in function 'require'
/usr/local/openresty/luajit/share/lua/5.1/ledge/ledge.lua:8: in main chunk
[C]: in function 'require'
/usr/local/openresty/lualib/sm/init.lua:29: in function 'run'
init_by_lua:3: in main chunk
A issue from one of Openresty's repositories states that this is a path issue. Is there a solution for this or is Ledge not fully compatible with Openresty?
I see there are other compatibility issues with Openresty.
This repository is advertised as "compatible" with Openresty when it is clearly not.
Please fix Ledge to be fully compatible with Openresty or provide instructions on how we can achieve it.
Hi! Ledge does work Openresty and its how we run it in production. The error you've posted looks like you're missing zlib which is used in lua-ffi-zlib which ledge depends on.
Can you try installing that or give some more info as to what platform you're running this on?