[Freeswitch-users] luasql

Joel White joelewhite at gmail.com
Thu Aug 14 16:19:44 MSD 2014


I have (or so I thought) installed all dependencies for Lua to connect to a
postgres db in freeswitch.

When I run the Lua script though I get this message


2014-08-14 08:16:20.832901 [ERR] mod_lua.cpp:203
/usr/local/freeswitch/scripts/db_connect.lua:12: module 'luasql.postgres'
not found:
        no field package.preload['luasql.postgres']
        no file './luasql/postgres.lua'
        no file '/usr/local/share/lua/5.1/luasql/postgres.lua'
        no file '/usr/local/share/lua/5.1/luasql/postgres/init.lua'
        no file '/usr/local/lib/lua/5.1/luasql/postgres.lua'
        no file '/usr/local/lib/lua/5.1/luasql/postgres/init.lua'
        no file './luasql/postgres.so'
        no file './libluasql/postgres51.so'
        no file '/usr/local/lib/lua/5.1/luasql/postgres.so'
        no file '/usr/local/lib/lua/5.1/libluasql/postgres51.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './luasql.so'
        no file './libluasql51.so'
        no file '/usr/local/lib/lua/5.1/luasql.so'
        no file '/usr/local/lib/lua/5.1/libluasql51.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'


I do have lua-sql-postgres installed on Debian 7 as well as libpq-dev and
all other mentioned packages


How do I correct the issue of FreeSWITCH not seeing lua-sql-postgres?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140814/5fa27114/attachment.html 


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