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

I install luafilesystem ,but when I run openresty is error #121

Open
zhangwei900808 opened this issue Nov 19, 2018 · 1 comment
Open

I install luafilesystem ,but when I run openresty is error #121

zhangwei900808 opened this issue Nov 19, 2018 · 1 comment

Comments

@zhangwei900808
Copy link

nginx: [error] init_by_lua_file error: lua/ngx_base/resty/utils/lfs_help.lua:16: module 'lfs' not found:
no field package.preload['lfs']
no file 'lua/lfs.lua'
no file 'lua/ngx_base/lfs.lua'
no file 'lua/ngx_base/resty/utils/lfs.lua'
no file 'lua/modules/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs.lua'
no file '/opt/openresty/nginx/lualib/'
no file '/opt/openresty/site/lualib/lfs.ljbc'
no file '/opt/openresty/site/lualib/lfs/init.ljbc'
no file '/opt/openresty/lualib/lfs.ljbc'
no file '/opt/openresty/lualib/lfs/init.ljbc'
no file '/opt/openresty/site/lualib/lfs.lua'
no file '/opt/openresty/site/lualib/lfs/init.lua'
no file '/opt/openresty/lualib/lfs.lua'
no file '/opt/openresty/lualib/lfs/init.lua'
no file './lfs.lua'
no file '/opt/openresty/luajit/share/luajit-2.1.0-beta3/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs.lua'
no file '/usr/local/share/lua/5.1/lfs/init.lua'
no file '/opt/openresty/luajit/share/lua/5.1/lfs.lua'
no file '/opt/openresty/luajit/share/lua/5.1/lfs/init.lua'
no file '/opt/openresty/site/lualib/lfs.so'
no file '/opt/openresty/lualib/lfs.so'
no file './lfs.so'
no file '/usr/local/lib/lua/5.1/lfs.so'
no file '/opt/openresty/luajit/lib/lua/5.1/lfs.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
lua/ngx_base/resty/utils/lfs_help.lua:16: in main chunk
[C]: in function 'require'
lua/ngx_base/conf/base_config.lua:18: in main chunk
[C]: in function 'require'
./lua/nginx_init_by_lua.lua:35: in main chunk

@Tieske
Copy link
Member

Tieske commented Nov 20, 2018

please close this issue, since you created 2 the same ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants