From: Bruce Lester <bruce.lester@gm...> - 2008-07-18 17:25:11
I recently finished Practial Common Lisp and I would like to experiment with
the postgresql support in clisp.
Does anyone have a set of instructions for installing all software required to
use the postgresql module in clisp?
I have winxp, clisp 2.45 (based on lisp in a box from PCL), Postgresql 8.3
After reading the clisp documentation, I think I might need cygwin but I am not
The following is my clisp *features*
(:LIBSVM :ZLIB :RAWSOCK :PCRE :WILDCARD
:DIRKEY :READLINE :REGEXP :SYSCALLS
:I18N :LOOP :COMPILER :CLOS :MOP
:SCREEN :FFI :GETTEXT :UNICODE
:BASE-CHAR=CHARACTER :PC386 :WIN32)
From: Sam Steingold <sds@gn...> - 2008-07-18 18:12:11
Bruce Lester wrote:
> Does anyone have a set of instructions for installing all software required to
> use the postgresql module in clisp?
others might be able to help you better, since I have never done what
you need to do - I have always built clisp myself, and then adding a
module is trivial:
$ ./configure --cbc build-pq --with-module=postgresql
$ ./build-pq/clisp -K full --version
otoh, what you are asking about is is not completely outrageous, so it
should be possible. you need to do the following:
go to your clisp installation directory (the one with "base" and "full"
get the postgresql module (from the clisp source distribution) into the
run ./postgresql/configure --with-libpq-prefix=C:/Progra~1/PostgreSQL/8.3/
make clisp-module CLISP=../clisp
./clisp-link add-module-set postgresql full full+pq
./full+pq/clisp -K full --version
see examples in http://clisp.cons.org/impnotes/dffi.html and
> I have winxp, clisp 2.45 (based on lisp in a box from PCL), Postgresql 8.3
> database server.
you also need the pq development kit, i.e., libraries & headers.
> After reading the clisp documentation,
what exactly did you read?
the whole thing?!
> I think I might need cygwin but I am not sure.
you will need a C compiler and a posix shell (and other posix utilities
like ls &c). cygwin is a good choice.
clisp-link script should be a part of your clisp distribution