(no subject)

View: New views
1 Messages — Rating Filter:   Alert me  

(no subject)

by Philipp Roessler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

has anyone ever successfully used tclodbc on Mac OS X 10.4? I'm on an  
Intel-Mac using TclTkAquaBI 8.4.10.0 (tclsh 84 or 8.5,
tclodbc 2.5) and have MySQL Server installed via macports (mysql5  
@5.0.51_0+server); the contents of my /Library/ODBC/odbcinst.in
iare:

     [ODBC Drivers]
     MySQL ODBC 5.1 Driver = Installed

     [ODBC Connection Pooling]
     PerfMon    = 0
     Retry Wait =

     [MySQL ODBC 5.1 Driver]
     Driver = /usr/local/lib/libmyodbc5.so
     SETUP  = /usr/local/lib/libmyodbc3S.so

The ODBC driver seems to work because in a bash the following works:

      ; iodbctest "DSN=myodbc_test"
     iODBC Demonstration program
     This program shows an interactive SQL processor
     Driver Manager: 03.52.0001.0928
     Driver: 05.01.0004 (libmyodbc5.so)

     SQL>

But the following happens when I try to connect to a MySQL database  
through tclodbc in a tclsh:

     % package require tclodbc
     2.5
     % database drivers
     {{MySQL ODBC 5.1 Driver} Installed}
     % database datasources
     {myodbc {MySQL ODBC 5.1 Driver}} {myodbc_test {MySQL ODBC 5.1  
Driver}}
     % database connect gDB myodbc_test root root
     IM003 0 {[iODBC][Driver Manager]Specified driver could not be  
loaded}
     % database connect gDB "DRIVER=MySQL ODBC 5.1 Driver"
     IM003 0 {[iODBC][Driver Manager]Specified driver could not be  
loaded}

Does anybody know what's going wrong? How can I configure tclodbc to  
load the suitable ODBC driver?

Best regards

Philipp


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac
LightInTheBox - Buy quality products at wholesale price