<div dir="ltr">The line where this fails is<div><br></div><div> <cdecl: int16 'SQLAllocEnv' (SQLHENV*)><br></div><div><br></div><div>Am I supposed to set an environment variable in order for this to work?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 23, 2024 at 2:07 PM Mark Volkmann <<a href="mailto:r.mark.volkmann@gmail.com">r.mark.volkmann@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm learning how to access databases from Cuis Smalltalk.<div>Here's what I've done so far:</div><div><br></div><div>- Clone the Git repository at <a href="https://github.com/Cuis-Smalltalk/DatabaseSupport" target="_blank">https://github.com/Cuis-Smalltalk/DatabaseSupport</a>.<br>- Open a "File List" window.<br>- Navigate to the "DatabaseSupport" directory.<br>- Select the file `ODBC_pck.st`.<br>- Click the "install package" button.<br></div><div>- Try the sample code in the class method dsn:user:password:query: of the ODBCConnection class in the ODBC class category.</div><div><br></div><div>This line gives an error:</div><div><br></div><div> conn := ODBCConnection dsn: dsn user: user password: password.</div><div><br></div><div>The error is "External module not found".</div><div>I'm running in macOS.</div><div>I suspect it is trying to find the file /usr/local/lib/libodbc.dylib or libodc.2.dylib.</div><div>Those files exist on my machine.</div><div>Do I need to do something to let Cuis know where to find those files?<br><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div>