yforth command not found

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

Introduction

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

yforth: command not found

or when using sudo you get the following error message

sudo: yforth: command not found

Solutions to yforth: command not found

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

In Ubuntu yforth is provided by yforth package.

yforth is:

yForth? is an interestingly small implementation of Forth for Linux. It suffers several deficiencies. For general Forth programming or learning under Linux, yForth? is not the best choice.

From the author’s README:

yForth? is a Forth environment written entirely in ANSI C, making it extremely portable. The first thing I want to tell you about yForth? is that it seems a joke compared to other systems such as gForth or PFE.

Nevertheless, you could find yForth? nice, in which case you’re invited to explore yForth?

It’s yours, you can make anything you want with it. If you want an explanation of the words provided by yForth? please refer to the draft of ANS Forth or something equivalent. The Net will help you.

Do not expect the prompt “ok” to come up when you run yForth?, the standard says that “ok” shall be printed AFTER every successful command execution…

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

sudo apt-get -y install yforth

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

You can also use apt command to install yforth.

sudo apt -y install yforth

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

sudo aptitude install yforth

Summary

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