Friday, March 18, 2022

[SOLVED] How to install CMAKE

Issue

I'm new in Linux and I trying to install CMAKE but I get on this error . How can fix that:

dania@dania:~/sz/lin/build$ cmake .. -D CMAKE_INSTALL_PREFIX:PATH=[INSTALL_DIR] CMake Error: The source directory "/home/dania/sz/lin/build/CMAKE_INSTALL_PREFIX:PATH=[INSTALL_DIR]" does not exist. Specify --help for usage, or press the help button on the CMake GUI.


Solution

To install cmake cross-platform, open-source make system in all currently supported versions of Debian open the terminal and type:

sudo apt install cmake


Answered By - karel
Answer Checked By - Mary Flores (WPSolving Volunteer)