cgal_create_CMakeLists command not found

In this troubleshooting guide we learn how to fix cgal_create_CMakeLists command not found error message

Introduction

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

cgal_create_CMakeLists: command not found

or when using sudo you get the following error message

sudo: cgal_create_CMakeLists: command not found

Solutions to cgal_create_CMakeLists: command not found

How To Fix cgal_create_CMakeLists: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cgal_create_CMakeLists is provided by libcgal-dev package.

libcgal-dev is:

CGAL (Computational Geometry Algorithms Library) makes the most important of the solutions and methods developed in computational geometry available to users in industry and academia in a C++ library. The goal is to provide easy access to useful, reliable geometric algorithms.

This package contains most of the header files. The header files for visualization with Qt can be found in the package libcgal-qt5-dev.

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

sudo apt-get -y install libcgal-dev

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

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

sudo apt -y install libcgal-dev

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

sudo aptitude install libcgal-dev

Summary

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