我如何从命令行运行 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 时似乎没有正确安装某些东西。有遇到过这个问题的人知道怎么解决吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)