You are not logged in.
Hi,
I'm trying to install luasec the right way with luarocks. I installed luarocks from the arch repo and invoked then sudo luarocks install luasec. This works so far, but when trying to use the module (on local https = require 'ssl.https') I get this output (after correcting the access rights for /usr/share/lua/5.4/, since I executed luarocks as root for a systemwide install)
lua5.4: /usr/share/lua/5.4/socket.lua:12: module 'socket.core' not found:
no field package.preload['socket.core']
no file '/usr/share/lua/5.4/socket/core.lua'
no file '/usr/share/lua/5.4/socket/core/init.lua'
no file '/usr/lib/lua/5.4/socket/core.lua'
no file '/usr/lib/lua/5.4/socket/core/init.lua'
no file './socket/core.lua'
no file './socket/core/init.lua'
no file '/usr/lib/lua/5.4/socket/core.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './socket/core.so'
no file '/usr/lib/lua/5.4/socket.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './socket.so'
stack traceback:
[C]: in function 'require'
/usr/share/lua/5.4/socket.lua:12: in main chunk
[C]: in function 'require'
/usr/share/lua/5.4/ssl/https.lua:9: in main chunk
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in ?Now when I undo this process (luarocks remove ...) and install the package via the arch repo (sudo pacman -S lua-sec) everything works.
One might say, fine it works, just use the arch repo package, but I'd prefer installing this via luarocks (at first for understanding what the problem/difference is, but secondly because in LuaLaTeX I've got the same error output (with both ways) and I think the cause might be the same) since not all lua libs will be in the arch repo, and installing some from the arch repo and some from luarocks will eventually get me in dependency hell.
As far as I looked at the PKGBUILD the installation is done with luarocks as well and I'm still missing the huge difference. Does someone else sees/knows it?
Offline