Ubuntu OS

For details about the dependency names, versions, and obtaining methods in the Ubuntu system environment, see Table 1.

Table 1 Versions corresponding to the Ubuntu dependencies

Dependency

Version

How to Obtain

GCC

7.3.0

You are advised to obtain the source package for compilation and installation. For details about the installation procedure, see Installing GCC 7.3.0.

Make

3.82 or later

You are advised to install it through the package manager. The installation command is as follows:

1
sudo apt-get install -y make

If the version in the package manager does not meet the minimum version requirement, you can install the package using the source code.

CMake

3.5.2 or later

You are advised to install it through the package manager. The installation command is as follows:

1
sudo apt-get install -y cmake

If the version in the package manager does not meet the minimum version requirement, you can install the package using the source code.

xz

5.2.2 or later

You are advised to install it through the package manager. The installation command is as follows:

1
sudo apt-get install -y xz-utils

If the version in the package manager does not meet the minimum version requirement, you can install the package using the source code.

protobuf

4.25.1

You are advised to install it through PIP. The installation command is as follows:

1
pip3 install protobuf==4.25.1

Python

3.9/3.10/3.11/3.12

You are advised to obtain the source package for compilation and installation. For details about the installation procedure, see Installing Python.

(Optional) haveged

-

This dependency needs to be installed if the StreamServer function is used. You are advised to install it through the package manager. The installation command is as follows:

sudo apt-get install -y haveged
Run the following command to check whether dependencies such as GCC, Make, and CMake have been installed:
1
2
3
4
5
6
gcc --version
make --version
cmake --version
xz --version
python3 --version
pip3 list|grep protobuf

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

1
2
3
4
5
6
gcc (Ubuntu 7.3.0-3ubuntu1~18.04) 7.3.0
GNU Make 3.82
cmake version 3.5.2
xz (XZ Utils) 5.2.2
Python 3.9.2
protobuf           4.25.1