glpsol command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
glpsol: command not found
or when using sudo you get the following error message
sudo: glpsol: command not found
Solutions to glpsol: command not found
How To Fix glpsol: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu glpsol is provided by glpk-utils package.
glpk-utils is:
GLPK (GNU Linear Programming Kit) is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library.
This package contains a stand-alone LP/MIP solver (glpsol) and several example problems.
To fix this problem, we can install more using the command below.
sudo apt-get -y install glpk-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install glpk-utils.
sudo apt -y install glpk-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install glpk-utils
Summary
In this tutorial we learn how to fix glpsol command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.