<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Your missing enable the module in spidermonkey.conf.xml<div><br></div><div><br><div><div>On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">connect to a remote database using javascript.<br>When i searched the WIki I got this page:<span class="Apple-converted-space">&nbsp;</span><a href="http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC">http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC</a><br>I did the steps what are mentioned there, namely:<br><br><ol><li>First download and install unixodbc.<span class="Apple-converted-space">&nbsp;</span><a href="http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc" title="">See below</a><span class="Apple-converted-space">&nbsp;</span>if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set.</li><li>In the FreeSWITCH source directory, uncomment the<span class="Apple-converted-space">&nbsp;</span><code>languages/mod_spidermonkey_odbc</code><span class="Apple-converted-space">&nbsp;</span>line within the<span class="Apple-converted-space">&nbsp;</span><code>build/modules.conf</code><span class="Apple-converted-space">&nbsp;</span>file.</li><li>Compile core odbc support into freeswitch.</li></ol><pre>./configure --enable-core-odbc-support<br> make all install<br></pre>The ./configure doesnt give any error nor does the build<br><br>When i restart freeswitch, i can see this:<br><span style="font-family: 'courier new', monospace; ">2008-10-06 19:01:43 [ERR] mod_spidermonkey.c:928 sm_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">**/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**</span><br style="font-family: 'courier new', monospace; "><br clear="all">Will my script run inspite of this?<br>What am i not doing - something i should do more?</span></blockquote></div><br></div></body></html>