Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
734 views
in Technique[技术] by (71.8m points)

package - How do I run Pie (from The Little Typer) from the command line?

I've been reading The Little Typer for a while now and I want to actually try out Pie now instead of just reading about it. Here are the steps in which I tried to get a Pie REPL up and running in the command line (on a Mac):

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

The last line outputs this:

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
> 

Furthermore, when testing out Pie expressions, like (cons 'foo 'bar), it tells me this:

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

It seems like something isn't installed correctly when running Pie from the command line. Does anyone who has run into this problem know how to resolve it?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...