<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>I have an Lua script that reads from a mysql DB. The script when ran alone works correctly, but when running inside freeswitch it says that the mysql module is not found. see error below.</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);">2013-12-09 12:43:14.873414 [ERR] mod_lua.cpp:199 /usr/local/freeswitch/scripts/callerID.lua:6: module 'luasql.mysql' not found:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no field package.preload['luasql.mysql']</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file './luasql/mysql.lua'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/share/lua/5.1/luasql/mysql.lua'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/share/lua/5.1/luasql/mysql/init.lua'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/luasql/mysql.lua'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/luasql/mysql/init.lua'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file './luasql/mysql.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file './libluasql/mysql51.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/luasql/mysql.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/libluasql/mysql51.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/loadall.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file './luasql.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file './libluasql51.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/luasql.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/libluasql51.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>no file '/usr/local/lib/lua/5.1/loadall.so'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);">stack traceback:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>[C]: in function 'require'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(188, 50, 28); background-color: rgb(254, 244, 156);"><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/freeswitch/scripts/callerID.lua:6: in main chunk</div></div></body></html>