dancer command not found

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

Introduction

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

dancer: command not found

or when using sudo you get the following error message

sudo: dancer: command not found

Solutions to dancer: command not found

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

In Ubuntu dancer is provided by libdancer-perl package.

libdancer-perl is:

Dancer is a web application framework designed to be as effortless as possible for the developer, taking care of the boring bits as easily as possible, yet staying out of your way and letting you get on with writing your code.

Dancer aims to provide the simplest way for writing web applications, and offers the flexibility to scale between a very simple lightweight web service consisting of a few lines of code in a single file, all the way up to a more complex fully-fledged web application with session support, templates for views and layouts, etc.

This is the original version of Dancer, which is now in maintenance mode. This means that it will not receive significant new features, but will continue to receive bugfixes and security fixes.

However, you should consider migrating to Dancer2 instead when you can, and are advised to use Dancer2 for newly-started apps.

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

sudo apt-get -y install libdancer-perl

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

You can also use apt command to install libdancer-perl.

sudo apt -y install libdancer-perl

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

sudo aptitude install libdancer-perl

Summary

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