lein command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lein: command not found
or when using sudo you get the following error message
sudo: lein: command not found
Solutions to lein: command not found
How To Fix lein: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lein is provided by leiningen package.
leiningen is:
Working on Clojure projects with tools designed for Java can be an exercise in frustration. With Leiningen, you describe your build with Clojure. Leiningen handles fetching dependencies, running tests, packaging your projects and can be easily extended with a number of plugins.
To fix this problem, we can install more using the command below.
sudo apt-get -y install leiningen
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install leiningen.
sudo apt -y install leiningen
Or if you have aptitude installed you can use the following command.
sudo aptitude install leiningen
Summary
In this tutorial we learn how to fix lein command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.