lgf-gen command not found

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

Introduction

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

lgf-gen: command not found

or when using sudo you get the following error message

sudo: lgf-gen: command not found

Solutions to lgf-gen: command not found

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

In Ubuntu lgf-gen is provided by liblemon-utils package.

liblemon-utils is:

LEMON stands for Library for Efficient Modeling and Optimization in Networks. It is a C++ template library providing efficient implementations of common data structures and algorithms with focus on combinatorial optimization tasks connected mainly with graphs and networks.

LEMON is a member of the COIN-OR initiative, a collection of OR related open source projects.

This package contains the utilities accompanying the library.

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

sudo apt-get -y install liblemon-utils

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

You can also use apt command to install liblemon-utils.

sudo apt -y install liblemon-utils

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

sudo aptitude install liblemon-utils

Summary

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