我想知道您是否可以帮助解决我在 SBCL 中遇到的错误。我正在做一个教程,第一课就是将脚本加载到 LISP 中。这是名为 hello.lisp 的脚本:
(defun hello ()
"say hello to USER"
(format t "hello ~a" (uiop:getenv "USER")))
(hello)
但是当我运行命令:(加载“hello.lisp”)时,我收到以下错误:
debugger invoked on a SB-C::INPUT-ERROR-IN-LOAD in thread
#<THREAD "main thread" RUNNING {1000510083}>:
READ error during LOAD:
Package UIOP does not exist.
Line: 3, Column: 36, File-Position: 74
Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /home/oliver/Programs/hello.lisp" {10015403F3}>
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Abort loading file "/home/oliver/Programs/hello.lisp".
1: Exit debugger, returning to top level.
(SB-C:COMPILER-ERROR SB-C::INPUT-ERROR-IN-LOAD :CONDITION #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {1001542543}> :STREAM #<SB-INT:FORM-TRACKING-STREAM for "file /home/oliver/Programs/hello.lisp" {10015403F3}>)
关于如何修复有什么想法吗?我似乎缺少“UIOP”,但我不知道如何安装。预先感谢!
奥利弗