hi, I met a undefined symbol error, Please let me known what's wrong with it. Thanks.
here is the error info:
[root@dev01 nginx]# sbin/nginx -t
nginx: [error] init_by_lua error: ...xu/projects/resty/lib/resty-core-lib/resty/core/misc.lua:85: /usr/local/luajit/lib/libluajit-5.1.so.2: undefined symbol: ngx_http_lua_ffi_get_conf_env
stack traceback:
[C]: in function '__index'
...xu/projects/resty/lib/resty-core-lib/resty/core/misc.lua:85: in main chunk
[C]: in function 'require'
/home/xu/projects/resty/lib/resty-core-lib/resty/core.lua:9: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
and the conf is here:
lua_package_path "/home/xu/projects/resty/lib/resty-lrucache-lib/?.lua;/home/xu/projects/resty/lib/resty-core-lib/?.lua;;";
init_by_lua_block {
local verbose = false
if verbose then
local dump = require "jit.dump"
dump.on(nil, "/tmp/jit.log")
else
local v = require "jit.v"
v.on("/tmp/jit.log")
end
require "resty.core"
}
server {
listen 80;
server_name resty.com;
root /home/xu/projects/resty/app;
index ?.lua;
}