ODBC and Mac OS X

John M McIntosh johnmci at smalltalkconsulting.com
Tue Oct 16 19:15:50 UTC 2007


Well you need to install a ODBC package of some sort on your mac.
Say from
http://www.iodbc.org/index.php?page=languages/php/php-osx-HOWTO

Once installed you'll have some dll/module, say in windows it's  
odbc32.dll.
For the mac or any unix box I have no idea what it would be called  
and could be dependent on which odbc client vendor/open source  
solution you use.

In order for FFI to find it, it must be found in a path that FFI  
searchs and be named like what you see in the Smalltalk FFI code.
Mind you the FFI logic given odbc32 would also search for odbc32.so  
odbc32.dylib libodbc32  ...

As mentioned a helpful symbolic link odbc32 in the right place is  
helpful.

PS http://www.macports.org/
maybe helpful here in finding a odbc client since it's an interface  
to help install the BSD unix port's tree on os-x

On Oct 16, 2007, at 10:04 AM, Petr Fischer wrote:

> Hi, is possible to use ODBC in Squeak under Mac OS X?
>
> My test code:
> connection := ODBCConnection
> 				dsn: 'TESTDSN'
> 				user: '***'
> 				password: '***'.
>
> Error: Unable to find function address.
>
> In class method ODBCLibrary>>moduleName is "odbc32" - is it  
> platform independent? No one using ODBC on Mac OS X?
>
> Thanks, pf

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===





More information about the Squeak-dev mailing list