[Freeswitch-users] invalid ELF header error in lua startup script

Javier Gallart jgallartm at gmail.com
Tue May 10 19:36:23 MSD 2011


Hello Tristan

CentOS 5, 64  bits

Thanks!

Javi



> ---------- Forwarded message ----------
> From: "Tristan Mahé" <t.mahe at telemaque.fr>
> To: freeswitch-users at lists.freeswitch.org
> Date: Tue, 10 May 2011 14:30:48 +0200
> Subject: Re: [Freeswitch-users] invalid ELF header error in lua startup
> script
>  32bit module on a 64bit system or the opposite ?
>
> Le 10/05/2011 13:09, Javier Gallart a écrit :
>
> 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
>
>
> _______________________________________________
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110510/d91db372/attachment.html 


More information about the FreeSWITCH-users mailing list