Using packages installed from quicklisp with clisp

2019-09-05 08:02发布

问题:

I installed cl-yacc from quick lisp:

(ql:quickload "yacc")

I checked it is available.

[12]> (ql:system-apropos "yacc")
#<SYSTEM lispbuilder-yacc / lispbuilder-20130312-svn / quicklisp 2013-08-13>
#<SYSTEM yacc / cl-yacc-20101006-darcs / quicklisp 2013-08-13>

I tried to use the package, but I got errors.

[18]> (use-package '#:yacc)

*** - USE-PACKAGE: There is no package with name "YACC"
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead.
ABORT          :R2      Abort main loop

[20]> (use-package 'yacc)

*** - USE-PACKAGE: There is no package with name "YACC"
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead.
ABORT          :R2      Abort main loop

What might be wrong? How to use the package? I use clisp under Mac OS X 10.7.5

回答1:

There seems to be two ways to do it.

ql:quickload

[1]> (ql:quickload "yacc")
To load "yacc":
  Load 1 ASDF system:
    yacc
; Loading "yacc"

("yacc")
[2]> (use-package 'yacc)
T

asdf:load-system

[1]> (asdf:load-system :yacc)
0 errors, 0 warnings
T
[2]> (use-package 'yacc)
T