我将以下htdp/bsl程序另存为example.rkt:
#lang htdp/bsl
(+ 1 1)
使用 运行上述内容时racket example.rkt,输出与预期一致(即2)。
但是,当我尝试使用htdp/bsl语言 ( racket -I htdp/bsl) 启动 REPL 时,会出现以下错误:
Welcome to Racket v6.3.
default-load-handler: cannot open module file
module path: (lib "htdp/bsl")
path: /usr/share/racket/pkgs/htdp-lib/htdp/bsl.rkt
system error: No such file or directory; errno=2
context...:
This error does not appear when the language selected is typed/racket, for example.
为什么会发生错误htdp/bsl,以及如何正确启动 REPLhtdp/bsl作为语言?