load artful msql module failed

Started by csfreebird, April 24, 2014, 09:08:26 AM

Previous topic - Next topic

csfreebird

Always get following error on Ubuntu with 10.6.0



root@gitlab:/opt# newlisp
newLISP v.10.6.0 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h

> (load "/opt/mysql.lsp")

ERR: string expected in function import : libmysqlclient

csfreebird

#1
Fixed it. Add my real path in mysql.lsp file:

;;; Find the libmysqlclient library on this system                                                                                              
(setf is-64-bit nil)
(let ((paths '("/usr/lib/libmysqlclient.so"
               "/usr/lib/x86_64-linux-gnu/libmysqlclient.so" ;;here
               "/usr/lib64/mysql/libmysqlclient.so"
               "/usr/local/mysql/lib/libmysqlclient.dylib"
               "/opt/local/lib/libmysqlclient.dylib"
               "/sw/lib/libmysqlclient.dylib")))