Ubuntu

Run the following commands to check whether the dependencies such as GCC, Make, and CMake have been installed:
gcc --version
make --version
cmake --version
xz --version
Python 3.9 --version
pip3 list|grep protobuf
dpkg -l libgfortran-7-dev

If the following information is displayed, the corresponding software has been installed. (The following information is only an example.)

gcc (Ubuntu 7.3.0-3ubuntu1~18.04) 7.3.0
GNU Make 4.1
cmake version 3.10.2
xz (XZ Utils) 5.2.5
Python 3.9.2
protobuf           3.13.0
libgfortran-7-dev:amd64    7.5.0-3ubuntu1~18.04    amd64    Runtime library for GNU Fortran applications (development files)
If any dependency is missing, run the following commands to install the software. You can change the following commands to install only some of them as required.
sudo apt-get install -y gcc make cmake xz-utils Python 3.9-dev libgfortran-7-dev
pip3 install protobuf==3.13.0