CLSQL-MYSQL on Lispworks for OSX
Alexandre Paes <[email protected]> Tue, 18 Sep 2012 01:40:54 +0100
| Newsgroups | gmane.lisp.clsql.general |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone,
I'm having a slight problem when trying to load clsql-mysql on lispworks in OSX. Basically I'm using
Quicklisp for loading libraries. loading CLSQL with quicklisp works without a problem by issuing:
CL-USER> (ql:quickload "clsql")
; Loading system definition from /Users/user/quicklisp/dists/quicklisp/software/uffi-20120520-
git/uffi.asd into
; #<The ASDF1 package, 0/16 internal, 0/16 external>
; Registering #<SYSTEM "uffi">
To load "clsql":
Load 1 ASDF system:
clsql
; Loading "clsql"
("clsql")
When I try to load CLSQL-MYSQL this is what happens:
CL-USER> (ql:quickload "clsql-mysql")
Error: Couldn't load foreign libraries "libmysqlclient", "libmysql". (searched CLSQL-SYS:*FOREIGN-LIBRARY-
SEARCH-PATHS*)
...
So I added libmysql.dylib folder to clsql-sys:*foreign-library-search-paths* with the following command:
CL-USER> (push #p"/usr/local/mysql/lib/" clsql-sys:*foreign-library-search-paths*)
(#P"/usr/local/mysql/lib/" #P"/Users/user/quicklisp/dists/quicklisp/software/clsql-20120520-git/db-
mysql/" #P"/Users/user/quicklisp/dists/quicklisp/software/clsql-20120520-git/uffi/")
After this, loading CLSQL-MYSQL goes like this:
CL-USER> (ql:quickload "clsql-mysql")
To load "clsql-mysql":
Load 1 ASDF system:
clsql-mysql
; Loading "clsql-mysql"
Error: Undefined function MYSQL:MYSQL-GET-CLIENT-INFO in form (SYMBOL-FUNCTION MYSQL:MYSQL-
GET-CLIENT-INFO).
1 (continue) Take the function definition of another function name.
...
I am not finding any way to solve this problem since I'm not all that versed in Common Lisp and can't seem
to understand this error not able to find much help googling for this error.
Is there someone using CLSQL-MYSQL on Lispworks for OSX that can provide some help on how to make it
all work? Thanks in advance for any help.
Best regards,
Alexandre Paes