I could use packages installed with quick lisp: Using packages installed from quicklisp with clisp
I tried to execute the lisp code that uses packages using command line. The code is
(ql:quickload "yacc")
(use-package 'yacc)
When I tried it with clisp ex.lisp
, I got this error message:
*** - READ from #<INPUT BUFFERED FILE-STREAM CHARACTER #P"ex.lisp" @2>: there
is no package with name "QL"
I had to use clisp < ex.lisp
to load the package.
What makes the difference between the two approaches? Is clisp < ex.lisp
the only way to use packages in command line?
I found this How to use quicklisp when CL program is invoked as a shell script?, but it's not for clisp.
CLISP
man page, "No RC file will be executed", when the interpreter is started asclisp script.lisp
. The OP should use the-i
option to causesetup.lisp
to be loaded. - Dirk