Visit https://download.racket-lang.org and choose between the two available distributions:
Racket
is the main distribution, it comes with several additional packages like math/number-theory as well as the DrRacket IDE.Minimal Racket
is far smaller and comes only with the needed packages.The installation is very simple. If you are used to this kind of thing, just go to https://download.racket-lang.org, then download and install the .dmg
file. A more detailed step-by-step walkthrough is detailed afterwards, if you prefer.
FIXME: If you have macOS, please fill in this section
On Mac OS X, you can visit the Help menu of DrRacket and use "Configure Command Line for Racket..." to set up racket tools for command line use. On Windows you will need to add the Racket installation folder to your PATH
variable.
To run a program, open DrRacket, enter the program starting with #lang racket
, and click the Run
button near the top-right corner. Here is a first example program:
#lang racket
(displayln "Hello Racket!")