-
Notifications
You must be signed in to change notification settings - Fork 29
Description
i had use the command to install
$ opm get tokers/lua-resty-requests```
but when i require, need a new package resty.socket.
resty -e 'print(require "resty.requests")'
ERROR: ./resty/requests/adapter.lua:4: module 'resty.socket' not found:
no field package.preload['resty.socket']
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty/socket.ljbc'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty/socket/init.ljbc'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty/socket.ljbc'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty/socket/init.ljbc'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty/socket.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty/socket/init.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty/socket.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty/socket/init.lua'
no file './resty/socket.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/luajit/share/luajit-2.1.0-beta3/resty/socket.lua'
no file '/usr/local/share/lua/5.1/resty/socket.lua'
no file '/usr/local/share/lua/5.1/resty/socket/init.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/luajit/share/lua/5.1/resty/socket.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/luajit/share/lua/5.1/resty/socket/init.lua'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty/socket.so'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty/socket.so'
no file './resty/socket.so'
no file '/usr/local/lib/lua/5.1/resty/socket.so'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/luajit/lib/lua/5.1/resty/socket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/site/lualib/resty.so'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/lualib/resty.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/Cellar/openresty/1.17.8.2_1/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
./resty/requests/adapter.lua:4: in main chunk
[C]: in function 'require'
./resty/requests/session.lua:5: in main chunk
[C]: in function 'require'
./resty/requests.lua:4: in main chunk
[C]: in function 'require'
(command line -e):1: in function 'inline_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:44>
[C]: in function 'xpcall'
init_worker_by_lua:53: in function <init_worker_by_lua:51>