我如何从命令行运行 Pie(来自 The Little Typer)?

我已经阅读 The Little Typer 有一段时间了,现在我想真正尝试 Pie 而不是仅仅阅读它。以下是我尝试在命令行(在 Mac 上)中启动和运行 Pie REPL 的步骤:

brew install racket
raco pkg install -n pie
racket -l pie -i

最后一行输出:

Welcome to Racket v7.9 [bc].
standard-module-name-resolver: collection not found
  for module path: typed/racket/base
  collection: "typed/racket"
  in collection directories:
   /Users/caspianahlberg/library/Racket/7.9/collects
   /usr/local/Cellar/minimal-racket/7.9/share/racket/collects
   /usr/local/Cellar/minimal-racket/7.9/share/racket/pkgs/racket-lib
> 

此外,在测试 Pie 表达式时,例如 (cons 'foo 'bar),它告诉我:

stdin::1: #%top-interaction: unbound identifier;
 also,no #%app syntax transformer is bound
  at: #%top-interaction
  in: (#%top-interaction cons (quote foo) (quote bar))
  location...:
   stdin::1
  context...:
   /usr/local/Cellar/minimal-racket/7.9/share/racket/collects/racket/repl.rkt:11:26

从命令行运行 Pie 时似乎没有正确安装某些东西。有遇到过这个问题的人知道怎么解决吗?

david_ye007 回答:我如何从命令行运行 Pie(来自 The Little Typer)?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1173341.html

大家都在问