mirb command not found

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

Introduction

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

mirb: command not found

or when using sudo you get the following error message

sudo: mirb: command not found

Solutions to mirb: command not found

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

In Ubuntu mirb is provided by mruby package.

mruby is:

mruby is the lightweight implementation of the Ruby language complying to the ISO standard. This can be linked and embedded within your application.

This package contains the following tools:

  • mirb: Embeddable interactive ruby shell
  • mrbc: mruby compiler
  • mruby: mruby interpreter
  • mrdb: mruby debugger
  • mruby-strip: mruby strip

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

sudo apt-get -y install mruby

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

You can also use apt command to install mruby.

sudo apt -y install mruby

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

sudo aptitude install mruby

Summary

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