[Freeswitch-users] LUA ESL Help

Chad Phillips chad at apartmentlines.com
Sat Dec 13 08:13:41 MSK 2014


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
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141212/0b4d9f07/attachment.html 


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