[Freeswitch-users] invalid ELF header error in lua startup script
Javier Gallart
jgallartm at gmail.com
Tue May 10 15:09:50 MSD 2011
Hello,
we have a lua script that we want to use as startup script in order to start
listening for events as soon as FS starts. This is the configuration:
<param name="module-directory" value="/usr/lib/lua/5.1/?.so"/>
<param name="module-directory" value="/usr/lib/lua/5.1/?.lua"/>
<param name="module-directory" value="/usr/lib/lua/5.1/socket/?.lua"/>
<param name="module-directory" value="/usr/lib/lua/5.1/socket/?.so"/>
<param name="module-directory" value="/usr/local/share/lua/5.1/?.so"/>
<param name="module-directory" value="/usr/local/share/lua/5.1/?.lua"/>
<param name="module-directory"
value="/usr/local/share/lua/5.1/xmlrpc/?.lua"/>
<param name="startup-script" value="script.lua"/>
The script first line is:
require("socket")
The file /usr/local/share/lua/5.1/socket.lua exists. Actually when we
execute "lua script.lua" it runs properly. But this is the freeswitch log at
startup:
2011-05-10 07:00:31.281411 [ERR] mod_lua.cpp:191 error loading module
'socket' from file '/usr/local/share/lua/5.1/socket.lua':
/usr/local/share/lua/5.1/socket.lua: invalid ELF header
stack traceback:
[C]: ?
[C]: in function 'require'
/usr/local/freeswitch/scripts/script.lua:1: in main chunk
Has anyone gone over the same issue? We tried with the latest git.
Thanks in advance
Javi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110510/3089283e/attachment.html
More information about the FreeSWITCH-users
mailing list