Article directory
0. Update and upgrade system software
Enter the following command in the terminal to refresh the software to ensure that the subsequent installed software is up to date:
sudo apt update
sudo apt upgrade
About the difference between apt, apt-get, update, upgrade: https://linux.cn/article-14994-1.html
1. Install the build-essential package
build-essential includes the GNU editor collection, GNU debugger, and other necessary development libraries and tools for compiling software. Simply speaking, installing build-essential is equivalent to installing tools such as gcc, g++, and make.
sudo apt install build-essential
Check gcc version:
gcc --version
Check g++ version:
g++ --version
Check make version:
make --version
2. Install gdb
sudo apt install gdb
Check gdb version:
gdb --version
3. Install cmake
sudo apt install cmake
Check cmake version:
cmake --version