scan-perl-prereqs command not found

In this troubleshooting guide we learn how to fix scan-perl-prereqs command not found error message

Introduction

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

scan-perl-prereqs: command not found

or when using sudo you get the following error message

sudo: scan-perl-prereqs: command not found

Solutions to scan-perl-prereqs: command not found

How To Fix scan-perl-prereqs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu scan-perl-prereqs is provided by libperl-prereqscanner-perl package.

libperl-prereqscanner-perl is:

Perl::PrereqScanner is a Perl module that extracts distribution prerequisites from files through various means. The extraction is not perfect but provides a best-guess approximation.

It currently detects the following:

  • plain lines beginning with use or require in perl modules and scripts
  • regular inheritance declared with the base and parent pragmata
  • Moose inheritance declared with the extends keyword
  • Moose roles included with the with keyword

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

sudo apt-get -y install libperl-prereqscanner-perl

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

You can also use apt command to install libperl-prereqscanner-perl.

sudo apt -y install libperl-prereqscanner-perl

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

sudo aptitude install libperl-prereqscanner-perl

Summary

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