From: Nikodemus S. <nik...@ra...> - 2008-12-08 18:23:37
|
On Mon, Dec 8, 2008 at 6:13 PM, Thom Goodsell <tho...@ma...> wrote: > :perform (load-op :before (op c) > ;; the before method runs after dependencies are loaded, > ;; but before the components are loaded, so clsql-mysql is > available > (pushnew #p"/usr/local/mysql/lib/" ; local development > (symbol-value (find-symbol "*FOREIGN-LIBRARY-SEARCH-PATHS*" > :clsql-sys))) > (asdf:oos 'asdf:load-op 'clsql-mysql)) I would probably just use (defsystem ... :depends-on (:clsql-mysql) ...) and leave search path configuration outside the system definition file. (It's not going to be portable between different installations anyways.) Just document the fact that mysql libraries need to be set up right (in LD_LIBRARY_PATH), or by user requiring :clsql-sys and pushing the path onto *F-L-S-P* prior to trying to use your system. (How do CLSQL users generally configure it? Is there maybe a .clsql.lisp you can stick in $HOME, or something like that?) Cheers, -- Nikodemus |