[plt-scheme] Re: error trying to use mysqlclient.ss
On Sat, Jun 27, 2009 at 6:07 AM, scott<sshickey at qwest.net> wrote:
> I did try to install it on my Mac OS X system and I got the following
> error. Does this look familiar to you?
>
> (require (prefix-in mysql- (lib "mysqlclient.ss" "mysqlclient")))
> load-extension: couldn't open "/Users/jshickey/programming/scheme/plt-
> scheme-v4.2/collects/mysqlclient/compiled/native/i386-macosx/3m/
> mysqlclient_ss.dylib" (dlopen(/Users/jshickey/programming/scheme/plt-
> scheme-v4.2/collects/mysqlclient/compiled/native/i386-macosx/3m/
> mysqlclient_ss.dylib, 2): Symbol not found: _mysql_affected_rows
> Referenced from: /Users/jshickey/programming/scheme/plt-scheme-v4.2/
> collects/mysqlclient/compiled/native/i386-macosx/3m/
> mysqlclient_ss.dylib
> Expected in: flat namespace
mysql_affected_rows is part of the MySQL API. This message suggests
that mysqlclient_ss.dylib is either not being linked correctly against
the MySQL library or the MySQL library is not found at runtime.
On Linux there is a tool that will tell you which shared library a
particular piece of code is linked to. No doubt there is an equivalent
on OS X (otool, perhaps). You might find out from the Apple docs, and
then see if mysqlclient_ss.dylib is indeed linked against the correct
library.
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/dyld.1.html
HTH,
N.