lopsubgen command not found

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

Introduction

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

lopsubgen: command not found

or when using sudo you get the following error message

sudo: lopsubgen: command not found

Solutions to lopsubgen: command not found

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

In Ubuntu lopsubgen is provided by liblopsub-dev package.

liblopsub-dev is:

Lopsub is an open source library written in C which aims to ease the task of creating, documenting and parsing the options of Unix command line utilities. It is suitable for simple commands as well as complex command line utilities with many subcommands where each subcommand has its own set of options. Options and documentation are kept together in a single file which can be translated to C code (to be included in the application), or to a manual page. The library supports single-character short options and GNU-style long options. The public API is well documented and stable. This package contains the development environment for the lopsub library.

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

sudo apt-get -y install liblopsub-dev

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

You can also use apt command to install liblopsub-dev.

sudo apt -y install liblopsub-dev

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

sudo aptitude install liblopsub-dev

Summary

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