[Freeswitch-users] LUA ESL Help

Chad Phillips chad at apartmentlines.com
Mon Dec 15 19:37:20 MSK 2014


You shouldn’t need any ESL.lua — pretty sure that’s just part of the search when “require ‘ESL’” is called, and /usr/lib64/lua/5.1/ESL.so should satisfy that search. Not sure why the symlink isn’t working, as an experiment, did you just put the ESL.so there directly? I’d also try adding to CPATH.


On Saturday, December 13, 2014 at 5:46 AM, spros p wrote:

> Thanks Chad - I don't think copying the ESL.so in the paths is the correct approach for resolving. I have in any case made a symbolic link of the ESL.so file to both /usr/share/lua/5.1 and /usr/lib64/lua/5.1 with no avail.
>  
> My suspicion is that LUA_PATH and LUA_CPATH need to be defined with ESL details. This is fine for the CPATH, as i know where ESL.so resides.  
>  
> However, I cannot define PATH, as there doesn't seem to be a ESL.lua file.
>  
> Best,
> Spyros
>  
>  
> On Sat, Dec 13, 2014 at 7:13 AM, Chad Phillips <chad at apartmentlines.com (mailto:chad at apartmentlines.com)> wrote:
> > The paths listed in the error message are the paths that Lua looks in for the module. So you either need to put your ESL.so in one of those locations, or add its location to path list. Check http://www.lua.org/pil/8.1.html for detailed info on how Lua does path handling.
> >  
> >  
> > On Friday, December 12, 2014 at 12:20 PM, spros p wrote:
> >  
> >  
> >  
> > > Hello,  
> > >  
> > > I am trying to run a simple ESL script using Lua. I have installed Lua 5.1 and the respective dev packages on my linux machine. Make luamod in /libs/esl/ directory works just fine.  
> > >  
> > > However when executing: freeswitch/libs/esl/lua/single_command.lua, i receive the following:  
> > >  
> > > lua: lua/single_command.lua:2: module 'ESL' not found:  
> > >         no field package.preload['ESL']  
> > >         no file './ESL.lua'  
> > >         no file '/usr/share/lua/5.1/ESL.lua'  
> > >         no file '/usr/share/lua/5.1/ESL/init.lua'  
> > >         no file '/usr/lib64/lua/5.1/ESL.lua'  
> > >         no file '/usr/lib64/lua/5.1/ESL/init.lua'  
> > >         no file './ESL.so'  
> > >         no file '/usr/lib64/lua/5.1/ESL.so'  
> > >         no file '/usr/lib64/lua/5.1/loadall.so'  
> > > stack traceback:  
> > >         [C]: in function 'require'  
> > >         lua/single_command.lua:2: in main chunk  
> > >         [C]: ?  
> > >  
> > > Any help would be greatly appreciated
> > >  
> > > Best,
> > > SP
> > >  
> > >  
> > >  
> > >  
> > > _________________________________________________________________________
> > > Professional FreeSWITCH Consulting Services:  
> > > consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> > > http://www.freeswitchsolutions.com
> > >  
> > > Official FreeSWITCH Sites
> > > http://www.freeswitch.org
> > > http://confluence.freeswitch.org
> > > http://www.cluecon.com
> > >  
> > > FreeSWITCH-users mailing list
> > > FreeSWITCH-users at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> > >  
> > >  
> > >  
> >  
> >  
> >  
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> > http://www.freeswitchsolutions.com
> >  
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://confluence.freeswitch.org
> > http://www.cluecon.com
> >  
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:  
> consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> http://www.freeswitchsolutions.com
>  
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>  
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org (mailto:FreeSWITCH-users at lists.freeswitch.org)
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141215/3bbef7fa/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list