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@freeswitch.org (mailto:consulting@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@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org