yaegi command not found

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

Introduction

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

yaegi: command not found

or when using sudo you get the following error message

sudo: yaegi: command not found

Solutions to yaegi: command not found

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

In Ubuntu yaegi is provided by yaegi package.

yaegi is:

Yaegi is Another Elegant Go Interpreter. It powers executable, Go scripts and plugins, in embedded interpreters or interactive shells, on top of the Go runtime.

This package contains the interpreter.

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

sudo apt-get -y install yaegi

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

You can also use apt command to install yaegi.

sudo apt -y install yaegi

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

sudo aptitude install yaegi

Summary

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