racket

Installation steps (Windows)

Installation or Setup

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.

To run a program, open DrRacket, enter the program starting with #lang racket, and click the Run button near the top-right corner.

Installation steps for Windows:

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 run the installer. A more detailed step-by-step walkthrough is detailed afterwards, if you prefer.

Downloading

  1. Go to https://download.racket-lang.org .
  2. Select Platform: Windows (x86, 32-bit) if you have a 32-bit system, or Platform: Windows (x64, 64-bit) if you have a 64-bit system. If in doubt, choose the 32-bit version.
  3. Click the download button labeled racket-6.9-i386-win32.exe (73M) (the label may be slightly different depending on the version).

Starting the installer

  1. Open the directory where the file was downloaded, and double-click on the racket-….exe file.
  2. Follow the installer’s instructions.

Setting up command-line tools

To set up the command-line tools, open DrRacket, click the Help menu, and click “Configure Command Line for Racket.” This will install the racket and raco commands. (On Windows, the racket command is Racket.exe).

Running your first program

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!")

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow