dzil command not found

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

Introduction

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

dzil: command not found

or when using sudo you get the following error message

sudo: dzil: command not found

Solutions to dzil: command not found

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

In Ubuntu dzil is provided by libdist-zilla-perl package.

libdist-zilla-perl is:

Dist::Zilla builds distributions of code to be uploaded to the CPAN. In this respect, it is like ExtUtils::MakeMaker, Module::Build, or Module::Install. Unlike those tools, however, it is not also a system for installing code that has been downloaded from the CPAN. Since it’s only run by authors, and is meant to be run on a repository checkout rather than on published, released code, it can do much more than those tools, and is free to make much more ludicrous demands in terms of prerequisites.

It’s aim is to generate every file which is needed by a CPAN distribution, but usually generated and hence commonly not checked in into a VCS repository. For that it reads a file called dist.ini and gathers data from other files as instructured in that file.

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

sudo apt-get -y install libdist-zilla-perl

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

You can also use apt command to install libdist-zilla-perl.

sudo apt -y install libdist-zilla-perl

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

sudo aptitude install libdist-zilla-perl

Summary

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