perlbrew command not found

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

Introduction

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

perlbrew: command not found

or when using sudo you get the following error message

sudo: perlbrew: command not found

Solutions to perlbrew: command not found

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

In Ubuntu perlbrew is provided by perlbrew package.

perlbrew is:

perlbrew is a program to automate the building and installation of perl in the users HOME. At the moment, it installs everything to ~/perl5/perlbrew, and requires you to tweak your PATH by including a bashrc/cshrc file it provides, in your shell configuration file. You then can benefit from not having to run ‘sudo’ commands to install cpan modules because those are installed inside your HOME too. It’s a completely separate perl environment.

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

sudo apt-get -y install perlbrew

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

You can also use apt command to install perlbrew.

sudo apt -y install perlbrew

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

sudo aptitude install perlbrew

Summary

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