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

Ledge is not compatible with Openresty #183

Open
xemose opened this issue Apr 27, 2019 · 2 comments
Open

Ledge is not compatible with Openresty #183

xemose opened this issue Apr 27, 2019 · 2 comments

Comments

@xemose
Copy link

xemose commented Apr 27, 2019

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?

@xemose
Copy link
Author

xemose commented Apr 28, 2019

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.

@xemose xemose changed the title Openresty Libz.so Issue Ledge is not compatible with Openresty Apr 28, 2019
@jloh
Copy link

jloh commented Apr 29, 2019

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?

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