CentOS 7.6
Installing Dependencies
- Install the compilation dependencies.
1sudo yum install -y automake cmake patch numactl numactl-devel kernel-devel libevent glib2 glib2-devel libtool openssl-devel selinux-policy-devel autoconf python-sphinx unbound-devel logrotate
- Install the VM dependencies.
1 2
sudo yum install centos-release-qemu-ev sudo yum install -y libvirt AAVMF virt-install qemu-guest-agent qemu-kvm-common-ev qemu-img-ev qemu-kvm-tools-ev qemu-kvm-ev
The QEMU software package with the file name extension ev must be installed. Otherwise, the dpdkvhostuser and dpdkvhostuserclient ports cannot be configured for VMs.
- Upgrade the GCC.By default, DPDK 19.11 does not support compilation with GCC 4.8.5. You need to upgrade the GCC or modify compilation parameters. Modifying compilation parameters may affect the performance. Therefore, you are advised to upgrade the GCC.
1 2 3
sudo yum install -y centos-release-scl sudo yum install -y devtoolset-7-gcc devtoolset-7-gcc-c++ scl enable devtoolset-7 bash
(Optional) Configuring GCC Environment Variables
The default values of GCC environment variables will be used upon Bash shutdown or re-login. In this case, perform the following operations to retain the preceding GCC environment variables.
- Run the enable command again.
1scl enable devtoolset-7 bash
- Retain GCC environment variables of Bash.
- Open the ~/.bash_profile file.
1vim ~/.bash_profile - Press i to enter the insert mode and add the following content to the end of the file:
1scl enable devtoolset-7 bash
- Press Esc to exit the insert mode. Input :wq! and press Enter to save the file and exit.
- Open the ~/.bash_profile file.
Parent topic: Configuring the Compilation Environment

