msc-gen command not found

In this troubleshooting guide we learn how to fix msc-gen command not found error message

Introduction

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

msc-gen: command not found

or when using sudo you get the following error message

sudo: msc-gen: command not found

Solutions to msc-gen: command not found

How To Fix msc-gen: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu msc-gen is provided by msc-generator package.

msc-generator is:

Msc-generator is a program that parses textual Message Sequence Chart descriptions and produces graphical output in a variety of file formats.

Msc-generator heavily borrows in concept from the 0.08 version of Michael C McTernan’s mscgen. However, it has been completely rewritten from scratch and has a much more extensive (and only partially backwards compatible) language. The command-line interface is fully backwards compatible with mscgen, which enables using Msc-generator’s commandline tool everywhere where you can use mscgen, but with the richer syntax. This includes the many tools integrated with mscgen, such as Doxygen, Sphinx and Msctexen.

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

sudo apt-get -y install msc-generator

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

You can also use apt command to install msc-generator.

sudo apt -y install msc-generator

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

sudo aptitude install msc-generator

Summary

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