[ERR] mod_lua.cpp:203 error loading module 'socket.core' from file '/usr/local/lib/lua/5.2/socket/core.so'
Hi team, I run fs-version 1.6.19+ in centos 7. I installed Lua5.2 and tried installing luasocket-3.0-rc1 from freeswitch doc. I can run independent lua script and send mail, but when I use the same script inside FS I get this error, ERR] mod_lua.cpp:203 error loading module 'socket.core' from file '/usr/local/lib/lua/5.2/socket/core.so': /usr/local/lib/lua/5.2/socket/core.so: undefined symbol: luaL_setfuncs stack traceback: [C]: ? [C]: in function 'require' /usr/local/share/lua/5.2/socket.lua:12: in main chunk [C]: in function 'require' /usr/local/share/lua/5.2/socket/smtp.lua:15: in main chunk [C]: in function 'require' /usr/local/freeswitch/scripts/sendmail.lua:2: in main chunk
From the freeswitch doc luasocket installation I can witness last make command with LUAINC_linux=/usr/local/src/freeswitch/src/mod/languages/mod-lua/lua where I don't find any folder "lua" inside the source. I have LUAINC_linux=/usr/local/include/ (lua include dir) and this works for independent luasocket to send mail. Please help me in fixing this workaround.
participants (1)
-
Akshaya j