nginx: [alert] failed to load the 'resty.core' module

231 views
Skip to first unread message

Klen Zhang

unread,
Aug 24, 2023, 1:28:12 AM8/24/23
to openresty
我安装的时候使用了自定义目录,openresty安装在了/home/mydir/usr/local目录里面,然后启动的时候,报了失败
nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
no field package.preload['resty.core']
no file '/usr/local/openresty/site/lualib/resty/core.ljbc'
no file '/usr/local/openresty/site/lualib/resty/core/init.ljbc'
no file '/usr/local/openresty/lualib/resty/core.ljbc'
no file '/usr/local/openresty/lualib/resty/core/init.ljbc'
no file '/usr/local/openresty/site/lualib/resty/core.lua'
no file '/usr/local/openresty/site/lualib/resty/core/init.lua'
no file '/usr/local/openresty/lualib/resty/core.lua'
no file '/usr/local/openresty/lualib/resty/core/init.lua'
no file './resty/core.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/resty/core.lua'
no file '/usr in /tmp/resty_IKDrdnjeHs/conf/nginx.conf:62
但是resty.core这个是在/home/mydir/usr/local/openresty/lualib/resty/ 下面,请问怎么指定这个查找路径呢?

along

unread,
Feb 3, 2024, 11:10:16 PMFeb 3
to openresty
改下lua_package_path和lua_package_cpath试试
Reply all
Reply to author
Forward
0 new messages