CMAKE_CXX_COMPILER-NOTFOUND

If you encounter the following error:

CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

It means you need to install a compiler.

For Debian/Ubuntu you can run the following:

apt-get install build-essential

And for RedHat/CentOS/Fedora:

yum install gcc-c++
Share

Leave a Reply

Your email address will not be published. Required fields are marked *