kmk_install command not found

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

Introduction

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

kmk_install: command not found

or when using sudo you get the following error message

sudo: kmk_install: command not found

Solutions to kmk_install: command not found

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

In Ubuntu kmk_install is provided by kbuild package.

kbuild is:

The goals of the kBuild framework:

  • Similar behavior cross all supported platforms.
  • Flexibility, don’t create unnecessary restrictions preventing ad-hoc solutions.
  • Makefile can very simple to write and maintain.

There are four concepts being tried out in the current kBuild incaration:

  • One configuration file for a subtree automatically included.
  • Target configuration templates as the primary mechanism for makefile simplification.
  • Tools and SDKs for helping out the templates with flexibility.
  • Non-recursive makefile method by using sub-makefiles.

kBuild does not provide any facilities for checking compiler/library/header configurations, that’s not in its scope. If this is important for your project, check out the autoconf tool in the GNU build system. It is possible to use kBuild together with autoconf if you like, but you might just as well use the full GNU package.

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

sudo apt-get -y install kbuild

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

You can also use apt command to install kbuild.

sudo apt -y install kbuild

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

sudo aptitude install kbuild

Summary

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