Unzip dpdk-19.11.tar
cd dpdk-19.11
#RTE_SDK is the top-level directory of the code
#RTE_TARGET is to select the compilation platform, here is a 64-bit linux system, use gcc to compile
export RTE_SDK=/home/nxy/software/dpdk-19.11
export RTE_TARGET=x86_64-native-linuxapp-gcc
sed -ri 's,(PMD_PCAP=).*,\1y,' config/common_base
make config T=$RTE_TARGET
# Compiler generates | DESTDIR installation directory is
the make -j 10 T = $ RTE_TARGET install DESTDIR = / Home / NXY / Software / DPDK
# or
Export DESTDIR = / usr / local
the make install -j 10 T = $ RTE_TARGET
-------------------------------------------------------------------------------------------------
Encounter problems:
pcap.h: No such file or directory
solve:
yum install -y libpcap-devel #Recompile dpdk after installation by root user