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

error in openresty: libaerospike.so: cannot open shared object file: No such file or directory #12

Open
onlynishant opened this issue Oct 12, 2018 · 1 comment

Comments

@onlynishant
Copy link

onlynishant commented Oct 12, 2018

Hi,

I am able to run test/main.lua successfully but when I try the same thing in Openresty

#config
lua_package_cpath ";/usr/local/openresty/lualib/?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/socket/?.so;/usr/lib/lua/5.1/?.so;/usr/lib64/lua/5.1/?.so;/usr/local/lib/?.so;/usr/lib/?.so";

#code in content_by_lua_file 
local as = require("as_lua")

error.log:

2018/10/12 11:30:55 [error] 25155#0: *109 [lua] NGX.lua:55: error(): error loading module 'as_lua' from file '/usr/lib/lua/5.1/as_lua.so':
	libaerospike.so: cannot open shared object file: No such file or directory
$] sudo find / -name 'as_lua.so'
/usr/lib/lua/5.1/as_lua.so
$] sudo find / -name 'libaerospike.so'
/usr/lib/lua/5.1/libaerospike.so
/usr/lib/libaerospike.so
$] nginx -v
nginx version: openresty/1.13.6.1

Is aerospike-API call non-blocking? If not how can we make it non-blocking (like other openresty libs)?

@onlynishant onlynishant changed the title error using in openresty error in openresty: libaerospike.so: cannot open shared object file: No such file or directory Oct 12, 2018
@BrianNichols
Copy link
Contributor

I'm not familiar with Openresty, but libaerospike.so does need to exist in LD_LIBRARY_PATH on linux.

This experimental lua client just provides a few sync command wrappers to the C client. To use async commands, you would have to write your own wrappers to the async C client functions.

Also, this client is not meant to be used in production as it's not officially supported and does not appear on our website (only exists in github).

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