Links:
Install:
Install the Lua package manager
luarocks. Optionally, installluarockslocally.Install
luasocket:luarocks install luasocketor (locally):
./myluarocks install luasocket
To use encrupted protocols (https etc), the following rock is also needed:
luarocks install luasec
or (locally):
./myluarocks install luasec
Test installation:
cat > socket-test.lua << __EOF__
local socket = require("socket")
print(socket._VERSION)
__EOF__
./mylua socket-test.lua
Output should be:
LuaSocket 3.0.0