[Cuis-dev] ODBC support

Mark Volkmann r.mark.volkmann at gmail.com
Mon Sep 23 12:29:34 PDT 2024


The line where this fails is

 <cdecl: int16 'SQLAllocEnv' (SQLHENV*)>

Am I supposed to set an environment variable in order for this to work?

On Mon, Sep 23, 2024 at 2:07 PM Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:

> I'm learning how to access databases from Cuis Smalltalk.
> Here's what I've done so far:
>
> - Clone the Git repository at
> https://github.com/Cuis-Smalltalk/DatabaseSupport.
> - Open a "File List" window.
> - Navigate to the "DatabaseSupport" directory.
> - Select the file `ODBC_pck.st`.
> - Click the "install package" button.
> - Try the sample code in the class method dsn:user:password:query: of the
> ODBCConnection class in the ODBC class category.
>
> This line gives an error:
>
>  conn := ODBCConnection dsn: dsn user: user password: password.
>
> The error is "External module not found".
> I'm running in macOS.
> I suspect it is trying to find the file /usr/local/lib/libodbc.dylib or
> libodc.2.dylib.
> Those files exist on my machine.
> Do I need to do something to let Cuis know where to find those files?
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240923/6877b6c2/attachment.htm>


More information about the Cuis-dev mailing list