This is guide is only for Ubuntu. If you are using other Linux distributions, please check the corresponding package manager to install the required softwares.
Install build essentials:
sudo apt-get install build-essentialCheck gcc version:
gcc -v # or g++ -vIf you are using ubuntu 23, the outputs would imply the installed gcc version is "13.x.x".
If the output version is lower than 13, please check this article.
sudo apt-get install cmake