Hi,
on RPI with lua-socket/stable v3.0 installed a require ("socket.http") command in an lua script triggers the following message:
/usr/lib/arm-linux-gnueabihf/lua/5.1/socket/core.so: undefined symbol: luaL_openlib
however running the same script from the lua command line does not trigger the same message.
it seems compiling lua into domoticz may require a some specific compilation flags for this to work, any idea ?
Thanks
Guillaume
cannot load luasocket
Moderator: leecollings
-
- Posts: 329
- Joined: Tuesday 16 July 2013 22:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8807
- Location: North East England
- Contact:
Re: cannot load luasocket
If you have a look at Lua on the command line on your RPI, I guess it says Lua 5.1.......gbordier wrote:Hi,
on RPI with lua-socket/stable v3.0 installed a require ("socket.http") command in an lua script triggers the following message:
/usr/lib/arm-linux-gnueabihf/lua/5.1/socket/core.so: undefined symbol: luaL_openlib
however running the same script from the lua command line does not trigger the same message.
it seems compiling lua into domoticz may require a some specific compilation flags for this to work, any idea ?
Thanks
Guillaume
Domoticz normally uses Lua version 5.2, so you need to have the correct libraries for Lua 5.2, so Domoticz should not even be looking at 5.1 which possibly suggests something is set up incorrectly. Have you purposely compiied in Version 5.1?
How did you install lua-socket?
If you have a normal version of Domoticz then following these instructions will install the correct libraries - http://www.domoticz.com/wiki/Remote_Con ... _Libraries.
If you want to debug your installation a bit more then add a line like:
Code: Select all
require('rubbish')
Code: Select all
stdin:1: module 'red' not found:
no field package.preload['red']
no file '/usr/local/share/lua/5.2/red.lua'
no file '/usr/local/share/lua/5.2/red/init.lua'
no file '/usr/local/lib/lua/5.2/red.lua'
no file '/usr/local/lib/lua/5.2/red/init.lua'
no file '/usr/share/lua/5.2/red.lua'
no file '/usr/share/lua/5.2/red/init.lua'
no file './red.lua'
no file '/usr/local/lib/lua/5.2/red.so'
no file '/usr/lib/arm-linux-gnueabihf/lua/5.2/red.so'
no file '/usr/lib/lua/5.2/red.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './red.so'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
-
- Posts: 2
- Joined: Sunday 26 February 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: cannot load luasocket
Thanks a lot it DID work.
but it is a pity luasocket libs for 5.2 have to be installed manually (5.1 libs are part of wheezy on rpi) .
How can we make this part of the Domoticz wiki ?
but it is a pity luasocket libs for 5.2 have to be installed manually (5.1 libs are part of wheezy on rpi) .
How can we make this part of the Domoticz wiki ?
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: cannot load luasocket
I the same errror, only i run lua 5.2
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Who is online
Users browsing this forum: No registered users and 1 guest