[Openmcl-devel] An unfortunate interaction between CFFI and open-shared-library

Ron Garret ron at flownet.com
Sun Sep 19 14:05:26 PDT 2010


More weirdness.  In the console:

Welcome to Clozure Common Lisp Version 1.6-dev-r14251M-trunk  (DarwinX8664)!
? (setenv "LD_LIBRARY_PATH" "/usr/local/lib/mysql")
0
? (open-shared-library "libmysqlclient_r.dylib")
#<SHLIB libmysqlclient_r.dylib #x30200065FDED>

But in the IDE:

Welcome to Clozure Common Lisp Version 1.6-dev-r14251M-trunk  (DarwinX8664)!
? (setenv "LD_LIBRARY_PATH" "/usr/local/lib/mysql")
0
? (getenv "LD_LIBRARY_PATH")
"/usr/local/lib/mysql"
? (ccl::call-in-process (lambda () (getenv "LD_LIBRARY_PATH")) ccl::*initial-process*)
"/usr/local/lib/mysql"
? (open-shared-library "libmysqlclient_r.dylib")  ==> kablooey

Why does setting LD_LIBRARY_PATH not work in the IDE?

rg




More information about the Openmcl-devel mailing list