mx-run command not found

In this troubleshooting guide we learn how to fix mx-run command not found error message

Introduction

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

mx-run: command not found

or when using sudo you get the following error message

sudo: mx-run: command not found

Solutions to mx-run: command not found

How To Fix mx-run: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mx-run is provided by libmoosex-runnable-perl package.

libmoosex-runnable-perl is:

MooseX::Runnable is a framework for making classes runnable applications. This role doesn’t do anything other than tell the rest of the framework that your class is a runnable application that has a run method which accepts arguments and returns the process’ exit code.

This is a convention that the community has been using for a while. This role tells the computer that your class uses this convention, and let’s the computer abstract away some of the tedium this entails.

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

sudo apt-get -y install libmoosex-runnable-perl

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

You can also use apt command to install libmoosex-runnable-perl.

sudo apt -y install libmoosex-runnable-perl

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

sudo aptitude install libmoosex-runnable-perl

Summary

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