take usrlocalliblua5p2.tar.gz and usrlocalsharelua5p2.tar.gz from this thread :
http://www.domoticz.com/forum/viewtopic ... 638#p22638
which contains core.so for raspberry pi ARM processor.
Then replace these core.so with the 64 bit versions from this github project :
https://github.com/pkulchenko/ZeroBraneStudio
\ZeroBraneStudio-master\bin\linux\x64\clibs52\mime\core.so
\ZeroBraneStudio-master\bin\linux\x64\clibs52\socket\core.so
(note that I have not tested the 32 bit versions of core.so from above github project on other Synology NAS devices with a 32 bit intel processor.)
Put the files here (directories didn't exist) :
/usr/local/lib/lua/5.2/mime/core.so
/usr/local/lib/lua/5.2/socket/core.so
/usr/local/share/lua/5.2/*.lua
/usr/local/share/lua/5.2/socket/*.lua
/usr/local/share/lua/5.2/socket/core.so
This now works :
Code: Select all
local socket = require("socket")
local http = require("socket.http")
print(socket._VERSION)
print(http.request("http://w3.impa.br/~diego/software/luasocket/"))