word_components command not found

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

Introduction

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

word_components: command not found

or when using sudo you get the following error message

sudo: word_components: command not found

Solutions to word_components: command not found

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

In Ubuntu word_components is provided by sgb package.

sgb is:

A highly portable collection of programs and data for researchers who study combinatorial algorithms and data structures.

The programs are intended to be interesting in themselves as examples of literate programming. Thus, the Stanford GraphBase can also be regarded as a collection of approximately 30 essays for programmers to enjoy reading, whether or not they are doing algorithmic research. The programs are written in CWEB, a combination of TeX and C that is easy to use by anyone who knows those languages and easy to read by anyone familiar with the rudiments of C.

This package contains only the libraries and the demonstration programs; for the readable source code, which forms the documentation as well, see the sgb-doc package.

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

sudo apt-get -y install sgb

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

You can also use apt command to install sgb.

sudo apt -y install sgb

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

sudo aptitude install sgb

Summary

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