Hi all, I want to connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely: 1. First download and install unixodbc. See below<http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc>if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file. 3. Compile core odbc support into freeswitch. ./configure --enable-core-odbc-support make all install The ./configure doesnt give any error nor does the build When i restart freeswitch, i can see this: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory** Will my script run inspite of this? What am i not doing - something i should do more? -- Regards, Gayatri Kulkarni
Hello, On 10/06/08 16:42, Gayatri Kulkarni wrote:
Hi all,
I want to connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely:
1. First download and install unixodbc. See below <http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc> if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the |languages/mod_spidermonkey_odbc| line within the |build/modules.conf| file. 3. Compile core odbc support into freeswitch.
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build
When i restart freeswitch, i can see this: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
Will my script run inspite of this? What am i not doing - something i should do more? The line to load the |mod_spidermonkey_odbc has to be in |spidermonkey.conf.xml, not in modules.conf.xml.
The info is somewhere there on the wiki, I missed it as well some time ago ... Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com
Thanks for pointing out Daniel, It's not in modules.conf.xml it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc The problem is, when i run make all install, it's not creating the .so See the error message: 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 ***/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory*** is there a way to compile and install this module separately? -- Regards, Gayatri Kulkarni On Mon, Oct 6, 2008 at 9:01 PM, Daniel-Constantin Mierla <miconda@gmail.com>wrote:
Hello,
On 10/06/08 16:42, Gayatri Kulkarni wrote:
Hi all,
I want to connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely:
1. First download and install unixodbc. See below <http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc> if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the |languages/mod_spidermonkey_odbc| line within the |build/modules.conf| file. 3. Compile core odbc support into freeswitch.
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build
When i restart freeswitch, i can see this: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
Will my script run inspite of this? What am i not doing - something i should do more? The line to load the |mod_spidermonkey_odbc has to be in |spidermonkey.conf.xml, not in modules.conf.xml.
The info is somewhere there on the wiki, I missed it as well some time ago ...
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com
_______________________________________________ Freeswitch-users mailing list 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
Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating. /b On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:
Thanks for pointing out Daniel,
It's not in modules.conf.xml it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/ mod_spidermonkey_odbc The problem is, when i run make all install, it's not creating the .so
See the error message: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
is there a way to compile and install this module separately?
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !! -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:11 AM, Brian West <brian@freeswitch.org> wrote:
Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating. /b
On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:
Thanks for pointing out Daniel,
It's not in modules.conf.xml it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc The problem is, when i run make all install, it's not creating the .so
See the error message: 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 ***/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory***
is there a way to compile and install this module separately?
_______________________________________________ Freeswitch-users mailing list 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
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
Guys, I am now having this problem: when i run my script i get this error - freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = <username> Password = <password> and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log [PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000 -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org> wrote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b
On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
If i have to run my script on Windows m/c, will i still need unixODBC? Is unixODBC available for windows??? i know i am sounding stupid But i need to get this done
Well, it didnt work as i hoped first i had to add the DSN on my machine too for the remote database then, when i did, it gave me this error: freeswitch@Comp36> 2008-10-08 00:38:25 [ERR] switch_odbc.c:160 switch_odbc_handl e_connect() STATE: HY000 CODE 63 ERROR: [Microsoft][ODBC Microsoft Access Driver ]General error Not enough information to connect to this DSN with SQLConnect. Use SQLDriverConnect. 2008-10-08 00:38:25 [ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is no t connected! 2008-10-08 00:38:26 [ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() Database i s not connected! Any idea - what's happening? Appreciating all your help, -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 7:23 AM, Michael Jerris <mike@jerris.com> wrote:
On Oct 7, 2008, at 9:34 AM, Gayatri Kulkarni wrote:
If i have to run my script on Windows m/c, will i still need unixODBC? Is unixODBC available for windows???
On windows we use the native odbc interfaces and it builds by default (no need to do anything special to enable it)
Mike
_______________________________________________ Freeswitch-users mailing list 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
Guys please help me on this I am still getting that error *freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified* I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script: use("ODBC"); var DSN="PostgreSQL"; var DB_USER="<username>"; var DB_PASS="<password>"; var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log("notice",DB.path+"\n"); if(db.connect()){ console_log("notice","Connected to DB"); } else{ console_log("notice","Still probs"); } *Here's the output:* freeswitch@fedora> 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs Please Help me Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com>wrote:
Guys, I am now having this problem: when i run my script i get this error -
freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = <username> Password = <password>
and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log
[PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
-- Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org> wrote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b
On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
your DSN name is "postgres" and not "PostgreSQL" On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com>wrote:
Guys please help me on this I am still getting that error
*freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified*
I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script:
use("ODBC");
var DSN="PostgreSQL"; var DB_USER="<username>"; var DB_PASS="<password>";
var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log("notice",DB.path+"\n"); if(db.connect()){ console_log("notice","Connected to DB"); } else{ console_log("notice","Still probs"); }
*Here's the output:* freeswitch@fedora> 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs
Please Help me
Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com>wrote:
Guys, I am now having this problem: when i run my script i get this error -
freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = <username> Password = <password>
and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log
[PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
-- Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org> wrote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b
On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
either value for DSN name gives the same result :( On Fri, Oct 10, 2008 at 4:27 PM, Jonas Gauffin <jonas.gauffin@gmail.com>wrote:
your DSN name is "postgres" and not "PostgreSQL"
On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com
wrote:
Guys please help me on this I am still getting that error
*freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified*
I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script:
use("ODBC");
var DSN="PostgreSQL"; var DB_USER="<username>"; var DB_PASS="<password>";
var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log("notice",DB.path+"\n"); if(db.connect()){ console_log("notice","Connected to DB"); } else{ console_log("notice","Still probs"); }
*Here's the output:* freeswitch@fedora> 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs
Please Help me
Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com>wrote:
Guys, I am now having this problem: when i run my script i get this error -
freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = <username> Password = <password>
and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log
[PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
-- Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org>wrote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b
On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
latest version of odbc.ini: [ODBC Data Sources] PostgreSQL = PostgreSQL Database Driver [PostgreSQL] Description = PostgreSQL Database Driver Driver = /usr/local/lib/libodbcpsql.so Trace = Yes TraceFile = sql.log Database = postgres Servername = 58.68.117.43 UserName = <username> Password = <password> Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = [Default] Driver = /usr/local/lib/libodbcpsql.so [ODBC] Trace = 1 TraceFile = /var/log/odbctrace.out Driver = /usr/local/lib/libodbcpsql.so On Fri, Oct 10, 2008 at 5:28 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com>wrote:
either value for DSN name gives the same result :(
On Fri, Oct 10, 2008 at 4:27 PM, Jonas Gauffin <jonas.gauffin@gmail.com>wrote:
your DSN name is "postgres" and not "PostgreSQL"
On Fri, Oct 10, 2008 at 12:34 PM, Gayatri Kulkarni < xtpl.gayatri@gmail.com> wrote:
Guys please help me on this I am still getting that error
*freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified*
I can connect to the database successfully using isql -v command I can't figure out whats going on Here's my script:
use("ODBC");
var DSN="PostgreSQL"; var DB_USER="<username>"; var DB_PASS="<password>";
var db = new ODBC(DSN, DB_USER, DB_PASS); //console_log("notice",DB.path+"\n"); if(db.connect()){ console_log("notice","Connected to DB"); } else{ console_log("notice","Still probs"); }
*Here's the output:* freeswitch@fedora> 2008-10-10 15:41:32 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2008-10-10 15:41:32 [NOTICE] testdb.js:1 console_log() Still probs
Please Help me
Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 5:37 PM, Gayatri Kulkarni <xtpl.gayatri@gmail.com
wrote:
Guys, I am now having this problem: when i run my script i get this error -
freeswitch@fedora> 2008-10-07 17:27:24 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
my .*./etc/odbc.ini* looks like this: [postgres] Driver = PostgreSQL SERVER = localhost PORT = 5432 DATABASE = postgres UserName = <username> Password = <password>
and .*./etc/odbcinst.ini:* [ODBC] Trace = yes TraceFile = /tmp/trace.log
[PostgreSQL] Description = PostgreSQL driver Driver = /usr/local/lib/libodbpsql.so Setup = /usr/local/lib/libodbpsqlS.so UsageCount = 1000000
-- Regards, Gayatri Kulkarni
On Tue, Oct 7, 2008 at 11:32 AM, Brian West <brian@freeswitch.org>wrote:
thats because you don't load it in modules.conf.xml you load it in conf/autoload_configs/spidermonkey.conf.xml /b
On Oct 7, 2008, at 12:52 AM, Gayatri Kulkarni wrote:
Still the same :( It builds installs the shard library at {prefix}/freeswitch/lib directory while all the modules .so files are in {prefix}/freeswitch/mod directory If i copy the shared library to the mod directory, i get an error saying Invalid ELF Header !!
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
_______________________________________________ Freeswitch-users mailing list 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
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
-- Regards, Gayatri Kulkarni
Like we have to add odbc-dsn as a parm name in the voicemail.xml for voice mail, do we ave to do add it somewhere for running it in javascript too? like i said before, i can successfully connect with same username, password, DSN through isql utility why does fs not find the DSN name? -- Regards, Gayatri Kulkarni
Hi, I have read the above mail list but i cant able to clear this ODBC error. while installing the unixodbc i deed not get any error but when i load the mod_spidermonkey_obdc i get these errors freeswitch@hp30094686650.optimus.co.in> load mod_spidermonkey_odbc 2008-10-17 14:18:00 [CRIT] switch_loadable_module.c:767 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **Cannot locate symbol 'switch_module_load' please make sure this is a valid module.** API CALL [¶]ad(mod_spidermonkey_odbc)] output: -ERR [Ä[]Ã when i run the jsrun odbc.js i get this errors freeswitch@hp30094686650.optimus.co.in> jsrun odbc.js API CALL [jsrun(odbc.js)] output: OK freeswitch@hp30094686650.optimus.co.in> 2008-10-17 14:18:03 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-17 14:18:03 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-17 14:18:03 [ERR] mod_spidermonkey_odbc.c:314 odbc_next_row() Database is not connected! How can i clear this error help me to solve this problem.... -- Warm Regards, N.Baskar
mod_spidermonkey_odbc is loaded thru spidermonkey.conf.xml and not modules.conf.xml as its a sub module of mod_spidermonkey. /b On Oct 17, 2008, at 1:47 AM, Baskar wrote:
Hi,
I have read the above mail list but i cant able to clear this ODBC error.
while installing the unixodbc i deed not get any error but when i load the mod_spidermonkey_obdc i get these errors
freeswitch@hp30094686650.optimus.co.in> load mod_spidermonkey_odbc 2008-10-17 14:18:00 [CRIT] switch_loadable_module.c:767 switch_loadable_module_load_file() Error Loading module /usr/local/ freeswitch/mod/mod_spidermonkey_odbc.so **Cannot locate symbol 'switch_module_load' please make sure this is a valid module.** API CALL [¶]ad(mod_spidermonkey_odbc)] output: -ERR [Ä[]Ã
when i run the jsrun odbc.js i get this errors
freeswitch@hp30094686650.optimus.co.in> jsrun odbc.js API CALL [jsrun(odbc.js)] output: OK
Hi, I did that too but still same error please correct me where i am wrong On Fri, Oct 17, 2008 at 2:20 PM, Brian West <brian@freeswitch.org> wrote:
mod_spidermonkey_odbc is loaded thru spidermonkey.conf.xml and not modules.conf.xml as its a sub module of mod_spidermonkey. /b
On Oct 17, 2008, at 1:47 AM, Baskar wrote:
Hi,
I have read the above mail list but i cant able to clear this ODBC error.
while installing the unixodbc i deed not get any error but when i load the mod_spidermonkey_obdc i get these errors
freeswitch@hp30094686650.optimus.co.in> load mod_spidermonkey_odbc 2008-10-17 14:18:00 [CRIT] switch_loadable_module.c:767 switch_loadable_module_load_file() Error Loading module /usr/local/freeswitch/mod/mod_spidermonkey_odbc.so **Cannot locate symbol 'switch_module_load' please make sure this is a valid module.** API CALL [¶]ad(mod_spidermonkey_odbc)] output: -ERR [Ä[]Ã
when i run the jsrun odbc.js i get this errors
freeswitch@hp30094686650.optimus.co.in> jsrun odbc.js API CALL [jsrun(odbc.js)] output: OK
_______________________________________________ Freeswitch-users mailing list 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
-- Warm Regards, N.Baskar
this error means you still have it in modules.conf.xml. Remove it. On Oct 17, 2008, at 5:30 AM, Baskar wrote:
Hi,
I did that too but still same error
please correct me where i am wrong
On Fri, Oct 17, 2008 at 2:20 PM, Brian West <brian@freeswitch.org> wrote: mod_spidermonkey_odbc is loaded thru spidermonkey.conf.xml and not modules.conf.xml as its a sub module of mod_spidermonkey.
/b
On Oct 17, 2008, at 1:47 AM, Baskar wrote:
Hi,
I have read the above mail list but i cant able to clear this ODBC error.
while installing the unixodbc i deed not get any error but when i load the mod_spidermonkey_obdc i get these errors
freeswitch@hp30094686650.optimus.co.in> load mod_spidermonkey_odbc 2008-10-17 14:18:00 [CRIT] switch_loadable_module.c:767 switch_loadable_module_load_file() Error Loading module /usr/local/ freeswitch/mod/mod_spidermonkey_odbc.so **Cannot locate symbol 'switch_module_load' please make sure this is a valid module.** API CALL [¶]ad(mod_spidermonkey_odbc)] output: -ERR [Ä[]Ã
when i run the jsrun odbc.js i get this errors
freeswitch@hp30094686650.optimus.co.in> jsrun odbc.js API CALL [jsrun(odbc.js)] output: OK
Hi, When i load the mod_spidermonkey command i get all mod_spidermonkey loaded successfully freeswitch@hp30094686650.optimus.co.in>* load mod_spidermonkey* 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_teletone.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_core_db.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_socket.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so] 2008-10-20 12:29:46 [CONSOLE] switch_loadable_module.c:789 switch_loadable_module_load_file() Successfully Loaded [mod_spidermonkey] 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:238 switch_loadable_module_process() Adding Application 'javascript' 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:258 switch_loadable_module_process() Adding API Function 'jsrun' 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:258 switch_loadable_module_process() Adding API Function 'jsapi' API CALL [load(mod_spidermonkey)] output: +OK when i try to run a sample odbc code from freeswitch console like freeswitch@hp30094686650.optimus.co.in>* jsrun odbc.js* freeswitch@hp30094686650.optimus.co.in> API CALL [jsrun(odbc.js)] output: OK 2008-10-20 12:29:50 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [NOTICE] odbc.js:1 console_log() ============================== 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:266 odbc_num_rows() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:314 odbc_next_row() Database is not connected! 2008-10-20 12:29:50 [NOTICE] odbc.js:1 console_log() ============================== *code is:* use("ODBC"); var people = {}; people["authur"] = 30; people["ford"] = 42; people["trillian"] = 29; people["zaphod"] = 304; people["marvin"] = 1000001; db = new ODBC("freeswitch", "optimus", "optimus"); db.connect(); db.exec("create table demo (name varchar(255), age varchar(80));"); for (var i in people) { sql = "insert into demo values('" + i + "', " + people[i] + ");"; console_log("debug", sql + "\n"); db.exec(sql); } sql = "select * from demo;"; var line = "==============================\n"; console_log("notice", line); db.exec(sql); console_log("debug", "row count: " + db.numRows() + "\n"); while(db.nextRow()) { var row = db.getData(); for (var i in row) { console_log("debug", "[" + i + "] = [" + row[i] + "]\n"); } console_log("debug", "\n"); } console_log("notice", line); what should i specify in DSN.here i gave freeswitch which is a database name.please assist me to solve this problem -- Warm Regards, N.Baskar
can you connect to the database from outside freeswitch? Using the isql command? Try that first Plus: run odbcinst -j on my system, it shows me 3 files: /usr/local/etc/odbc.ini /usr/local/etc/odbcinst.ini /root/.odbc.ini When all these files are identical, i can successfully esatcblish the connection through my JS script Please go through: http://www.unixodbc.org/odbcinst.html -- Regards, Gayatri Kulkarni On Mon, Oct 20, 2008 at 12:28 PM, Baskar <yudha2008@gmail.com> wrote:
Hi,
When i load the mod_spidermonkey command i get all mod_spidermonkey loaded successfully
freeswitch@hp30094686650.optimus.co.in>* load mod_spidermonkey* 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_teletone.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_core_db.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_socket.so] 2008-10-20 12:29:46 [CONSOLE] mod_spidermonkey.c:944 sm_load_file() Successfully Loaded [/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so] 2008-10-20 12:29:46 [CONSOLE] switch_loadable_module.c:789 switch_loadable_module_load_file() Successfully Loaded [mod_spidermonkey] 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:238 switch_loadable_module_process() Adding Application 'javascript' 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:258 switch_loadable_module_process() Adding API Function 'jsrun' 2008-10-20 12:29:46 [NOTICE] switch_loadable_module.c:258 switch_loadable_module_process() Adding API Function 'jsapi' API CALL [load(mod_spidermonkey)] output: +OK
when i try to run a sample odbc code from freeswitch console like freeswitch@hp30094686650.optimus.co.in>* jsrun odbc.js* freeswitch@hp30094686650.optimus.co.in> API CALL [jsrun(odbc.js)] output: OK
2008-10-20 12:29:50 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [NOTICE] odbc.js:1 console_log() ============================== 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:266 odbc_num_rows() Database is not connected! 2008-10-20 12:29:50 [ERR] mod_spidermonkey_odbc.c:314 odbc_next_row() Database is not connected! 2008-10-20 12:29:50 [NOTICE] odbc.js:1 console_log() ==============================
*code is:* use("ODBC");
var people = {}; people["authur"] = 30; people["ford"] = 42; people["trillian"] = 29; people["zaphod"] = 304; people["marvin"] = 1000001;
db = new ODBC("freeswitch", "optimus", "optimus"); db.connect();
db.exec("create table demo (name varchar(255), age varchar(80));");
for (var i in people) { sql = "insert into demo values('" + i + "', " + people[i] + ");"; console_log("debug", sql + "\n"); db.exec(sql); }
sql = "select * from demo;"; var line = "==============================\n";
console_log("notice", line);
db.exec(sql);
console_log("debug", "row count: " + db.numRows() + "\n");
while(db.nextRow()) { var row = db.getData();
for (var i in row) { console_log("debug", "[" + i + "] = [" + row[i] + "]\n"); }
console_log("debug", "\n"); }
console_log("notice", line);
what should i specify in DSN.here i gave freeswitch which is a database name.please assist me to solve this problem
-- Warm Regards, N.Baskar
_______________________________________________ Freeswitch-users mailing list 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
Hi, Using isql i get these error [root@hp30094686650 ~]# isql ODBC [ISQL]ERROR: Could not SQLConnect when i run odbcinst -j on my system, it shows me also 3 files [root@hp30094686650 ~]# odbcinst -j unixODBC 2.2.12 DRIVERS............: /usr/local/etc/odbcinst.ini SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini USER DATA SOURCES..: /root/.odbc.ini * /usr/local/etc/.odbc.ini* [ODBC] Description = mysql Trace = Off TraceFile = stderr Driver = mysql SERVER = 172.20.176.32 USER = optimus PASSWORD = optimus PORT = 3306 DATABASE = freeswitch */usr/local/etc/odbcinst.ini* [mysql] Description = MYSQL driver Driver = /usr/local/lib/libmyodbc3.so Setup = /usr/local/lib/libodbcmyS.so CPTimeout = CPReuse = FileUsage = 1 I what to connect to mysql please correct me where i am worng -- Warm Regards, N.Baskar
*First:* Syntax for isql: isql <DSN> <username> <password> Next: Make sure your /usr/local/etc/odbcinst.ini *matches* /root/.odbc.ini Create a database in the DSN which you can test on *Sample odbc ini:* [ODBC Data Sources] MySQL = MySQL Database Driver [MySQL] Description = MySQL Database Driver Driver = /usr/local/lib/<name-of-your-lib-odbc.so> Trace = Yes TraceFile = sql.log Database = <database name> Servername = <IP of server on which DB is installed> UserName = <username> Password = <password> Port = <port no for mysql> Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = [Default] Driver = /usr/local/lib/<name-of-your-lib-odbc.so> [ODBC] Trace = 1 TraceFile = /var/log/odbctrace.out Driver = /usr/local/lib/<name-of-your-lib-odbc.so> Follow steps given on: http://www.unixodbc.org/odbcinst.html --- odbcinst -i -d -f template_file odbcinst -i -s -f template_file They install the drivers you list in the ini files I doubt there will be anything left to do after that! Hope this helps -- Regards, Gayatri Kulkarni On Mon, Oct 20, 2008 at 3:55 PM, Baskar <yudha2008@gmail.com> wrote:
Hi,
Using isql i get these error [root@hp30094686650 ~]# isql ODBC [ISQL]ERROR: Could not SQLConnect
when i run odbcinst -j on my system, it shows me also 3 files
[root@hp30094686650 ~]# odbcinst -j unixODBC 2.2.12 DRIVERS............: /usr/local/etc/odbcinst.ini SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini USER DATA SOURCES..: /root/.odbc.ini
* /usr/local/etc/.odbc.ini* [ODBC] Description = mysql Trace = Off TraceFile = stderr Driver = mysql SERVER = 172.20.176.32 USER = optimus PASSWORD = optimus PORT = 3306 DATABASE = freeswitch
*/usr/local/etc/odbcinst.ini*
[mysql] Description = MYSQL driver Driver = /usr/local/lib/libmyodbc3.so Setup = /usr/local/lib/libodbcmyS.so
CPTimeout = CPReuse = FileUsage = 1
I what to connect to mysql please correct me where i am worng -- Warm Regards, N.Baskar
_______________________________________________ Freeswitch-users mailing list 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
Hi, I have done all the changes but i cant able to run jsrun odbc.js freeswitch@hp30094686650.optimus.co.in> 2008-10-20 19:34:29 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' : /usr/local/lib/libmyodbc3.so: file too short 2008-10-20 19:34:29 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 19:34:29 [ERR] odbc.js:9 mod_spidermonkey() TypeError: session.hangup is not a function Some one correct me where i am wrong *odbc ini:* [ODBC Data Sources] myodbc = MySQL ODBC 2.50 Driver DSN myodbc3 = MySQL ODBC 3.51 Driver DSN [myodbc] Driver = /usr/local/lib/libmyodbc.so Description = MySQL ODBC 2.50 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET = [myodbc3] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET = [Default] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus -- Warm Regards, N.Baskar
freeswitch@hp30094686650.optimus.co.in> 2008-10-20 19:34:29 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' : /usr/local/lib/libmyodbc3.so: file too short check if your .so has read permissions i recoomend re-installing unixODBC or get some other drivers, i.e. if any provided by MySQL for ODBC On Mon, Oct 20, 2008 at 8:39 PM, Baskar <yudha2008@gmail.com> wrote:
Hi,
I have done all the changes but i cant able to run jsrun odbc.js
freeswitch@hp30094686650.optimus.co.in> 2008-10-20 19:34:29 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: 01000 CODE 0 ERROR: [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libmyodbc3.so' : /usr/local/lib/libmyodbc3.so: file too short
2008-10-20 19:34:29 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! 2008-10-20 19:34:29 [ERR] odbc.js:9 mod_spidermonkey() TypeError: session.hangup is not a function
Some one correct me where i am wrong
*odbc ini:* [ODBC Data Sources]
myodbc = MySQL ODBC 2.50 Driver DSN myodbc3 = MySQL ODBC 3.51 Driver DSN
[myodbc] Driver = /usr/local/lib/libmyodbc.so Description = MySQL ODBC 2.50 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET =
[myodbc3] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus Database = test OPTION = 3 SOCKET =
[Default] Driver = /usr/local/lib/libmyodbc3.so Description = MySQL ODBC 3.51 Driver DSN SERVER = localhost PORT = 3306 USER = optimus Password = optimus
-- Warm Regards, N.Baskar
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
Hi, After setting the permission also i cant able to run the js odbc script freeswitch@hp30094686650.optimus.co.in> jsrun odbc.js freeswitch@hp30094686650.optimus.co.in> API CALL [jsrun(odbc.js)] output: OK 2008-10-21 12:44:34 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified 2008-10-21 12:44:34 [ERR] mod_spidermonkey_odbc.c:235 odbc_exec() Database is not connected! Can any one specify which lib-odbc support for mysql i have this driver Driver = /usr/local/lib/libmyodbc.so but when i run the js script i get this above error Some one help to resolve the problem .i have rebuilt the process also but still i face the error. Can some one point out where i am wrong . -- Warm Regards, N.Baskar
Thanks Brian! make install worked :) -- Regards, Gayatri Kulkarni On Tue, Oct 7, 2008 at 11:11 AM, Brian West <brian@freeswitch.org> wrote:
Make sure in your root src folder modules.conf has it uncommented its built from build/modules.conf.in when you configure. Then "make mod_spidermonkey_odbc-install" also don't use make all install... use just "make install" or "make current" if you're updating. /b
On Oct 7, 2008, at 12:35 AM, Gayatri Kulkarni wrote:
Thanks for pointing out Daniel,
It's not in modules.conf.xml it's in the source directory's build/modules.conf.in - which source to compile to create the mod_spidermonkey_odbc.so, i.e. languages/mod_spidermonkey_odbc The problem is, when i run make all install, it's not creating the .so
See the error message: 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 ***/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory***
is there a way to compile and install this module separately?
_______________________________________________ Freeswitch-users mailing list 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
Your missing enable the module in spidermonkey.conf.xml On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote:
connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely:
First download and install unixodbc. See below if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. In the FreeSWITCH source directory, uncomment the languages/ mod_spidermonkey_odbc line within the build/modules.conf file. Compile core odbc support into freeswitch. ./configure --enable-core-odbc-support make all install The ./configure doesnt give any error nor does the build
When i restart freeswitch, i can see this: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
Will my script run inspite of this? What am i not doing - something i should do more?
I did that too I missed to mention it here On Mon, Oct 6, 2008 at 9:03 PM, Michael Jerris <mike@jerris.com> wrote:
Your missing enable the module in spidermonkey.conf.xml
On Oct 6, 2008, at 9:42 AM, Gayatri Kulkarni wrote:
connect to a remote database using javascript. When i searched the WIki I got this page: http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#SpiderMonkey_ODBC I did the steps what are mentioned there, namely:
1. First download and install unixodbc. See below<http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc> if you are struggling with this step. Make sure to install headers, libraries and source for the unixodbc library set. 2. In the FreeSWITCH source directory, uncomment the languages/mod_spidermonkey_odbc line within the build/modules.conf file. 3. Compile core odbc support into freeswitch.
./configure --enable-core-odbc-support make all install
The ./configure doesnt give any error nor does the build
When i restart freeswitch, i can see this: 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 **/usr/local/freeswitch/mod/mod_spidermonkey_odbc.so: cannot open shared object file: No such file or directory**
Will my script run inspite of this? What am i not doing - something i should do more?
_______________________________________________ Freeswitch-users mailing list 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
-- Regards, Gayatri Kulkarni
participants (7)
-
Baskar
-
Brian West
-
Daniel-Constantin Mierla
-
Gayatri Kulkarni
-
Jonas Gauffin
-
Michael Jerris
-
Rupa Schomaker