-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
libresty_ffi.so: cannot open shared object file #4
Comments
It requires thread pool support from Nginx. Can you add "--with-threads" and retry? I haven't tried 1.27 yet, will try it later, please stay tuned. |
Thanks for the reply! Yes, I build initially with I tried via build on Ubuntu 20.04.6 LTS, but it didn't work at the require(“resty_ffi”) point:
As tested:
|
It should be caused by this fixed bug. I forgot to upload a new luarocks version. I will do it later. |
@Bkndf done, please retry the latest version on luarocks. Thanks for your bug report. |
Yes, it works! Thank you very much! |
Hello, I apologize for reopening the issue.
|
yes, I forgot to update the python rockspec. I'll do it later. |
@Bkndf done. Please check the main-2 version. |
My Dockerfile (I based it on the official image):
And I put the lua-resty-ffi installation into the build:
This successfully compiled, openresty started up.
But when I try to test it, I get an error:
2024/11/21 00:36:49 [error] 1324#1324: *3 lua entry thread aborted: runtime error: /usr/local/openresty/luajit/share/lua/5.1/resty_ffi.lua:101: libresty_ffi.so: cannot open shared object file: No such file or directory
stack traceback:
coroutine 0:
[C]: in function 'load'
/usr/local/openresty/luajit/share/lua/5.1/resty_ffi.lua:101: in function 'load_ffi'
/hello.lua:3: in main chunk, server: localhost, request: "GET /hello HTTP/1.1", host: "127.0.0.1:8080"
My lua code:
All the files are in place, I checked it that way:
I even tried just writing the path to libresty_ffi.so in resty_ffi.lua, but I got a crash error:
local handle = ffi.load("/usr/local/openresty/luajit/lib/lua/5.1/libresty_ffi.so", true)
The text was updated successfully, but these errors were encountered: