I'm trying to create a simple sicp-flavoured scheme script that outputs a single value:
$ cat test.scm
#lang sicp
(+ 1 2 3)
When I run it with racket test.scm
, it doesn't output the result ("6"
). How should I be writing/running the script?
The problem is deeper than it seems. The installation of the sicp
module is incorrect, and/or the language configuration is wrong.
Try running the same code using DrRacket's GUI before running it from the command line. And try reinstalling the sicp
module following the instructions in the documentation.