dancer2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dancer2: command not found
or when using sudo you get the following error message
sudo: dancer2: command not found
Solutions to dancer2: command not found
How To Fix dancer2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dancer2 is provided by libdancer2-perl package.
libdancer2-perl is:
Dancer2 is the new generation lightweight web-framework for Perl. It’s a complete rewrite of Dancer based on Moo. It’s designed to be powerful and flexible, but also easy to use - getting up and running with your web app is trivial, and an ecosystem of adaptors for common template engines, session storage, logging methods and plugins to make common tasks easy mean you can do what you want to do, your way, easily.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libdancer2-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libdancer2-perl.
sudo apt -y install libdancer2-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libdancer2-perl
Summary
In this tutorial we learn how to fix dancer2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.