mapnik-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mapnik-config: command not found
or when using sudo you get the following error message
sudo: mapnik-config: command not found
Solutions to mapnik-config: command not found
How To Fix mapnik-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mapnik-config is provided by libmapnik-dev package.
libmapnik-dev is:
Mapnik is an OpenSource C++ toolkit for developing GIS (Geographic Information Systems) applications. At the core is a C++ shared library providing algorithms/patterns for spatial data access and visualization.
Essentially a collection of geographic objects (map, layer, datasource, feature, geometry), the library doesn’t rely on “windowing systems” and is intended to work in multi-threaded environments
This package contains the development headers, API documentation, and build utilities.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmapnik-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmapnik-dev.
sudo apt -y install libmapnik-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmapnik-dev
Summary
In this tutorial we learn how to fix mapnik-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.