Я установил lsocket из репозитория luarocks. При попытке загрузки модуля пишет:
lua: echosrv.lua:1: module 'lsocket' not found:
no field package.preload['lsocket']
no file '/usr/share/lua/5.3/lsocket.lua'
no file '/usr/share/lua/5.3/lsocket/init.lua'
no file '/usr/lib64/lua/5.3/lsocket.lua'
no file '/usr/lib64/lua/5.3/lsocket/init.lua'
no file './lsocket.lua'
no file './lsocket/init.lua'
no file '/usr/lib64/lua/5.3/lsocket.so'
no file '/usr/lib64/lua/5.3/loadall.so'
no file './lsocket.so'
stack traceback:
[C]: in function 'require'
echosrv.lua:1: in main chunk
[C]: in ?
luarocks show lsocket
пишет:
lsocket 1.4.1-1 - simple and easy socket support for lua.
lsocket is a library to provide socket programming support for lua. It is not
intended to be a complete socket api, but easy to use and good enough for most
tasks. IPv4, IPv6 and Unix Domain sockets are supported, as are tcp and udp,
and also IPv4 broadcasts and IPv6 multicasts.
License: MIT
Homepage: http://www.tset.de/lsocket/
Installed in: /usr/lib64/lua/luarocks
Modules:
lsocket (/usr/lib64/lua/luarocks/lib/lua/5.3/lsocket.so)
ЧЯДНТ? lua и luarocks установлены из портежей gentoo.