perlcritic command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
perlcritic: command not found
or when using sudo you get the following error message
sudo: perlcritic: command not found
Solutions to perlcritic: command not found
How To Fix perlcritic: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu perlcritic is provided by libperl-critic-perl package.
libperl-critic-perl is:
Perl::Critic is an extensible framework for creating and applying software coding policies to Perl source code. By default, it is distributed with a number of policy modules that attempt to enforce various coding guidelines, including those discussed in Damian Conway’s Perl Best Practices. However, it is not limited to PBP and will even support policies that contradict PBP. You can enable, disable and customize those policies through the Perl::Critic interface. You can also create new Policy modules to suit your own tastes.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libperl-critic-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libperl-critic-perl.
sudo apt -y install libperl-critic-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libperl-critic-perl
Summary
In this tutorial we learn how to fix perlcritic command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.