cl command not found

In this troubleshooting guide we learn how to fix cl command not found error message

Introduction

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

cl: command not found

or when using sudo you get the following error message

sudo: cl: command not found

Solutions to cl: command not found

How To Fix cl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cl is provided by cl-launch package.

cl-launch is:

CL-Launch will allow you to invoke Common Lisp source code from the shell command line, from a shell script or as a Common Lisp script. It will also allow you to turn your Common Lisp source programs into standalone executables or executable shell scripts (optionally using a dumped image), depending on the features available in your underlying implementation.

CL-Launch will automatically detect a supported Common Lisp implementation and use adequate invocation options. It can also be configured to fit exactly the programmer’s desires. Fully supported implementations are: Allegro, CLISP, ClozureCL, CMUCL, ECL, MKCL, SBCL, SCL. Partially supported implementations are: LispWorks Professional, ABCL, GCL, XCL. Creating standalone executables is supported on: CLISP, ClozureCL, CMUCL, LispWorks, SBCL, SCL

CL-Launch also offers Common Lisp programs a simple uniform interface to invocation parameters (command-line arguments and environment variables). It relies on ASDF 3 for system construction. See the ASDF 3 manual for more information on how to configure source and object code location. CL-Launch may dump memory images for fast startup (at the expense of disk space). It can also be used as a quick way to evaluate and print simple Lisp forms or scripts from the command-line without invoking a full-fledged REPL, and to easily compare results between implementations.

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

sudo apt-get -y install cl-launch

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

You can also use apt command to install cl-launch.

sudo apt -y install cl-launch

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

sudo aptitude install cl-launch

Summary

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