How to install a C++ compiler¶
In the console: xcode-select --install will install clang, gcc, and git.
In the console: sudo apt install build-essential will install clang, gcc, and git.
If you installed CLion then the C++ compiler is also installed.