gsl-config command not found

In this troubleshooting guide we learn how to fix gsl-config command not found error message

Introduction

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

gsl-config: command not found

or when using sudo you get the following error message

sudo: gsl-config: command not found

Solutions to gsl-config: command not found

How To Fix gsl-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gsl-config is provided by libgsl-dev package.

libgsl-dev is:

The GNU Scientific Library (GSL) is a collection of routines for numerical analysis. The routines are written from scratch by the GSL team in C, and present a modern API for C programmers, while allowing wrappers to be written for very high level languages.

This package contains the header files, static libraries and symbolic links that developers using GNU GSL will need.

URL: http://www.gnu.org/software/gsl/

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

sudo apt-get -y install libgsl-dev

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

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

sudo apt -y install libgsl-dev

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

sudo aptitude install libgsl-dev

Summary

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