geos-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
geos-config: command not found
or when using sudo you get the following error message
sudo: geos-config: command not found
Solutions to geos-config: command not found
How To Fix geos-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu geos-config is provided by libgeos-dev package.
libgeos-dev is:
GEOS provides a spatial object model and fundamental geometric functions. It implements the geometry model defined in the OpenGIS Consortium Simple Features Specification for SQL.
This package contains the headers and libraries needed to develop programs using GEOS.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libgeos-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libgeos-dev.
sudo apt -y install libgeos-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libgeos-dev
Summary
In this tutorial we learn how to fix geos-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.