mwrap command not found

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

Introduction

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

mwrap: command not found

or when using sudo you get the following error message

sudo: mwrap: command not found

Solutions to mwrap: command not found

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

In Ubuntu mwrap is provided by mwrap package.

mwrap is:

MWrap is an interface generation system in the spirit of SWIG or matwrap. From a set of augmented Octave/MATLAB script files, MWrap will generate a MEX gateway to desired C/C++ function calls and Octave/MATLAB function files to access that gateway. The details of converting to and from Octave/MATLAB’s data structures, and of allocating and freeing temporary storage, are hidden from the user.

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

sudo apt-get -y install mwrap

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

You can also use apt command to install mwrap.

sudo apt -y install mwrap

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

sudo aptitude install mwrap

Summary

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