plt-web-server command not found

In this troubleshooting guide we learn how to fix plt-web-server command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

plt-web-server: command not found

or when using sudo you get the following error message

sudo: plt-web-server: command not found

Solutions to plt-web-server: command not found

How To Fix plt-web-server: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu plt-web-server is provided by racket package.

racket is:

Racket (previously PLT Scheme) is a programming language suitable for scripting and application development, including GUIs and web services.

It supports the creation of new programming languages through a rich, expressive syntax system. Supplied languages include Typed Racket, ACL2, FrTime, and Lazy Racket, and R6RS Scheme.

Racket includes the DrRacket programming environment, a virtual machine with a just-in-time compiler, tools for creating stand-alone executables, the Racket web server, extensive libraries, and documentation for both beginners and experts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install racket

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install racket.

sudo apt -y install racket

Or if you have aptitude installed you can use the following command.

sudo aptitude install racket

Summary

In this tutorial we learn how to fix plt-web-server command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.