Using CLSQL and Postgresql on Mac OS X

Bill Clementson <[email protected]>
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Hi all,

I'm not sure whether this is better sent to clsql-help or clsql-devel;
however, there has just been a long thread (which I read but didn't
find my answer in) on "How CLSQL finds and loads foreign libraries",
so I decided that this forum might be the better one for my question.

I recently tried using CLSQL and Postgresql on Mac OS X for the first
time (I had used CLSQL on Win32 previously, but never on Mac OS X). I
built Postgresql following the instructions on the Apple developers
site (http://developer.apple.com/internet/opensource/postgres.html)
and downloaded the latest CLSQL. When I attempt to load clsql, I get
the error that is listed below. CLSQL is trying to find "libpq.dylib"
and "libpq.bundle" and not finding them. Is there something that I
need to do differently when I build postgresql or is there something
that I need to do to configure clsql so that it can find the correct
objects?

Thanks,
Bill Clementson

Error listing follows:

; loading system definition from
; /Users/bc/bin/lisp/clsql-3.2.0/clsql-postgresql.asd into #<Package "ASDF334">
; registering #<SYSTEM CLSQL-POSTGRESQL #x6526DDE> as CLSQL-POSTGRESQL
; loading system definition from /Users/bc/bin/lisp/clsql-3.2.0/clsql-uffi.asd
; into #<Package "ASDF335">
; loading system definition from /Users/bc/bin/lisp/uffi-1.4.39/uffi.asd into
; #<Package "ASDF336">
; registering #<SYSTEM UFFI #x6533CEE> as UFFI
; registering #<SYSTEM CLSQL-UFFI #x64919DE> as CLSQL-UFFI
; loading system definition from /Users/bc/bin/lisp/clsql-3.2.0/clsql.asd into
; #<Package "ASDF347">
; registering #<SYSTEM CLSQL #x64A94BE> as CLSQL
BASE=clsql_uffi OBJECT=clsql_uffi.o SOURCE=clsql_uffi.c
SHARED_LIB=clsql_uffi.so LDFLAGS="-lc" sh make.sh
; $ cd /Users/bc/bin/lisp/clsql-3.2.0/uffi/; make
rm clsql_uffi.o
; Warning: Error opening shared library "libpq.dylib": image not found
; While executing: FIND-AND-LOAD-FOREIGN-LIBRARY
; Warning: Error opening shared library "libpq.bundle": image not found
; While executing: FIND-AND-LOAD-FOREIGN-LIBRARY
; Warning: Error opening shared library "libpq.dylib": image not found
; While executing: FIND-AND-LOAD-FOREIGN-LIBRARY
; Warning: Error opening shared library "libpq.bundle": image not found
; While executing: FIND-AND-LOAD-FOREIGN-LIBRARY
> Error in process repl-thread(5): Couldn't load foreign library "libpq".
> While executing: FIND-AND-LOAD-FOREIGN-LIBRARY
> Type :POP to abort.
Type :? for other options.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.