leanproject command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
leanproject: command not found
or when using sudo you get the following error message
sudo: leanproject: command not found
Solutions to leanproject: command not found
How To Fix leanproject: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu leanproject is provided by mathlibtools package.
mathlibtools is:
mathlib-tools contains leanproject, a supporting tool for Lean mathlib. In conjunction with elan it allows a user to create, build, update and otherwise manage projects using the Lean 3 theorem prover and the mathlib library of mathematics and tactics.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mathlibtools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mathlibtools.
sudo apt -y install mathlibtools
Or if you have aptitude installed you can use the following command.
sudo aptitude install mathlibtools
Summary
In this tutorial we learn how to fix leanproject command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.