lmawk command not found

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

Introduction

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

lmawk: command not found

or when using sudo you get the following error message

sudo: lmawk: command not found

Solutions to lmawk: command not found

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

In Ubuntu lmawk is provided by libmawk1 package.

libmawk1 is:

Libmawk is a fork of the popular awk implementation mawk, and aims to be the lightweight script language programmers embed in their application.

This implementation also supports some minor extensions over mawk:

  • dynamic awk function calls from awk scripts (by name in string)
  • dynamic variables (access variable by name in string)
  • include “scriptname.awk”

Besides the shared object, an lmawk binary is also installed, which is command-line-compatible with mawk but provides all those extra features.

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

sudo apt-get -y install libmawk1

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

You can also use apt command to install libmawk1.

sudo apt -y install libmawk1

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

sudo aptitude install libmawk1

Summary

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