agda command not found

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

Introduction

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

agda: command not found

or when using sudo you get the following error message

sudo: agda: command not found

Solutions to agda: command not found

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

In Ubuntu agda is provided by agda-bin package.

agda-bin is:

Agda is a dependently typed functional programming language: It has inductive families, which are like Haskell’s GADTs, but they can be indexed by values and not just types. It also has parameterised modules, mixfix operators, Unicode characters, and an interactive Emacs interface (the type checker can assist in the development of your code).

Agda is also a proof assistant: It is an interactive system for writing and checking proofs. Agda is based on intuitionistic type theory, a foundational system for constructive mathematics developed by the Swedish logician Per Martin-Löf. It has many similarities with other proof assistants based on dependent types, such as Coq, Epigram and NuPRL.

This package provides a command-line program for type-checking and compiling Agda programs. The program can also generate hyperlinked, highlighted HTML files from Agda sources.

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

sudo apt-get -y install agda-bin

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

You can also use apt command to install agda-bin.

sudo apt -y install agda-bin

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

sudo aptitude install agda-bin

Summary

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