From: Fernando L. C. <co...@lu...> - 2011-11-01 00:35:08
|
On Mon, 31 Oct 2011 22:56:44 +0100, "Pascal J. Bourguignon" <pj...@in...> wrote: > Anton Vodonosov <avo...@ya...> writes: > > > Is it possible to have some init file for CLISP which is executed > > clisp -q -norc -ansi > (load "quicklisp/setup.lisp") > (ext:save-init-mem "~/bin/ql-clisp" :executable t) > (ext:quit) > > and now on use ~/bin/ql-clisp instead of clisp. > > Not tested, it may not work. Notably, quicklisp/setup.lisp probably > hard-wires pathnames, so it probably won't work if launched from > another account. I tried it verbatim and it didn't worked, it seems in my installation ext:save-init-mem is mapped to saveinitmem, in fact I have no package EXT. But I made it work like this: $ clisp -q -norc -ansi ;; this is suggested configuration for rc file by quicklisp docs (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) (saveinitmem "~/bin/ql-clisp" :executable t) (quit) -- Fernando Canizo (a.k.a. conan) - http://conan.muriandre.com/ GCS d? s:+ a C++ P--- L++++ E--- W+++ w--- M-- PE-- !tv b+++ h---- y+++ |