yardoc command not found

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

Introduction

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

yardoc: command not found

or when using sudo you get the following error message

sudo: yardoc: command not found

Solutions to yardoc: command not found

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

In Ubuntu yardoc is provided by yard package.

yard is:

YARD is a documentation generation tool for the Ruby programming language. It enables the user to generate consistent, usable documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions.

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

sudo apt-get -y install yard

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

You can also use apt command to install yard.

sudo apt -y install yard

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

sudo aptitude install yard

Summary

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