Loading libraries on OSX
Posted: Sat Jan 01, 2011 6:44 pm
Running Snow Leopard, latest version of NewLISP. Trying to use the memcached.lsp file, but NewLISP is having trouble importing the library which was installed via macports:
I didn't build libmemcached with any special arguments, just "port install libmemcached".
Any tips/ideas? Thanks in advance.
Code: Select all
> (import "/opt/local/lib/libmemcached.5.dylib" "memcached_create")
ERR: problem loading library in function import : "dlopen(/opt/local/lib/libmemcached.5.dylib, 9): no suitable image found. Did find:\n\t/opt/local/lib/libmemcached.5.dylib: mach-o, but wrong architecture"
Any tips/ideas? Thanks in advance.