osh command not found

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

Introduction

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

osh: command not found

or when using sudo you get the following error message

sudo: osh: command not found

Solutions to osh: command not found

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

In Ubuntu osh is provided by omake package.

omake is:

OMake is a build system designed to scale from small projects to very large projects spanning many directories. OMake uses a syntax similar to GNU make, with many additional features. It contains specifications for easily building C, OCaml, and LaTeX programs, but can be used to build projects with other languages as well.

OMake includes an accurate, automated dependency analysis based on MD5 digests. It also includes a stand-alone command-line interpreter, osh, that can be used as an interactive shell for debugging the build files. OMake’s syntax is a full object oriented language. Features of the OMake language include integer and floating point arithmetic, scoped expressions, higher order functions, multiple inheritance, pattern matching, runtime exceptions, lexers, and LALR(1) parsers. Users can easily produce architecture independent builds as omake provides a uniform interface to its standard library on Linux/Unix, Win32, and OS X.

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

sudo apt-get -y install omake

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

You can also use apt command to install omake.

sudo apt -y install omake

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

sudo aptitude install omake

Summary

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