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

报错: loop or previous error loading module 'lrucache' #37

Open
ygm521 opened this issue Dec 6, 2018 · 0 comments
Open

报错: loop or previous error loading module 'lrucache' #37

ygm521 opened this issue Dec 6, 2018 · 0 comments

Comments

@ygm521
Copy link

ygm521 commented Dec 6, 2018

版本:
lua-resty-lrucache-0.08
nginx1.9.4
ngx_lua_module-0.9.2
配置:
lua_package_path "/xxx/lua-resty-lrucache-0.08/lib/?.lua;;";

location / {
access_by_lua_file /xxx/http_access.lua;
}
http_access.lua:
local worker_lrucache = require "resty.lrucache"
local c_lrucache, err = worker_lrucache.new(100000) -- allow up to 100000 items in the cache
if not c_lrucache then
return error("failed to create the cache: " .. (err or "unknown"))
end
c_lrucache:get("dog")
c_lrucache:set("dog", { age = 10 }, 0.1)

报错: loop or previous error loading module 'lrucache'

@ygm521
Copy link
Author

ygm521 commented Dec 7, 2018

libluajit-5.1.so 库冲突导致

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

1 participant