sfcgal-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sfcgal-config: command not found
or when using sudo you get the following error message
sudo: sfcgal-config: command not found
Solutions to sfcgal-config: command not found
How To Fix sfcgal-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sfcgal-config is provided by libsfcgal-dev package.
libsfcgal-dev is:
SFCGAL is a C++ wrapper library around CGAL with the aim of supporting ISO 19107:2013 and OGC Simple Features Access 1.2 for 3D operations.
SFCGAL provides standard compliant geometry types and operations, that can be accessed from its C or C++ APIs. PostGIS uses the C API, to expose some SFCGAL’s functions in spatial databases (cf. PostGIS manual).
This package provides the development files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libsfcgal-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libsfcgal-dev.
sudo apt -y install libsfcgal-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libsfcgal-dev
Summary
In this tutorial we learn how to fix sfcgal-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.