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.
Make a c.lisp that executes and exits the calculator.lisp.
Run clisp with -i:
clisp -i c.lisp
.Reference