pdl command not found

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

Introduction

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

pdl: command not found

or when using sudo you get the following error message

sudo: pdl: command not found

Solutions to pdl: command not found

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

In Ubuntu pdl is provided by pdl package.

pdl is:

PDL gives standard perl the ability to COMPACTLY store and SPEEDILY manipulate the large N-dimensional data arrays which are the bread and butter of scientific computing. The idea is to turn perl in to a free, array-oriented, numerical language in the same sense as commercial packages like IDL and MatLab. One can write simple perl expressions to manipulate entire numerical arrays all at once. For example, using PDL the perl variable $a can hold a 1024x1024 floating point image, it only takes 4Mb of memory to store it and expressions like $a=sqrt($a)+2 would manipulate the whole image in a few seconds.

A simple interactive shell (perldl) is provided for command line use together with a module (PDL) for use in perl scripts.

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

sudo apt-get -y install pdl

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

You can also use apt command to install pdl.

sudo apt -y install pdl

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

sudo aptitude install pdl

Summary

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