{"id":1781,"date":"2025-12-16T09:35:51","date_gmt":"2025-12-16T09:35:51","guid":{"rendered":"http:\/\/www.recologypower.com:9080\/?p=1781"},"modified":"2025-12-31T10:05:01","modified_gmt":"2025-12-31T10:05:01","slug":"%e3%80%90dpdk%e3%80%91%e7%bc%96%e8%af%91%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/www.recologypower.com:9080\/?p=1781","title":{"rendered":"\u3010DPDK\u3011\u7f16\u8bd1\u6d41\u7a0b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u7f16\u8bd1\u73af\u5883\u51c6\u5907<\/h2>\n\n\n\n<ul>\n<li>General development tools including a C compiler supporting the C11 standard, including standard atomics, for example: GCC (version 8.0+ recommended) or Clang (version 7+ recommended), and\u00a0<code>pkg-config<\/code>\u00a0or\u00a0<code>pkgconf<\/code>\u00a0to be used when building end-user binaries against DPDK.\n<ul>\n<li>For RHEL systems these can be installed using&nbsp;<code>dnf&nbsp;groupinstall&nbsp;\"Development&nbsp;Tools\"<\/code><\/li>\n\n\n\n<li>For Fedora systems these can be installed using&nbsp;<code>dnf&nbsp;group&nbsp;install&nbsp;development-tools<\/code><\/li>\n\n\n\n<li>For Ubuntu\/Debian systems these can be installed using&nbsp;<code>apt&nbsp;install&nbsp;build-essential<\/code><\/li>\n\n\n\n<li>For Alpine Linux,&nbsp;<code>apk&nbsp;add&nbsp;alpine-sdk&nbsp;bsd-compat-headers<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Python 3.6 or later.<\/li>\n\n\n\n<li>Meson (version 0.57+) and ninja\n<ul>\n<li><code>meson<\/code>&nbsp;&amp;&nbsp;<code>ninja-build<\/code>&nbsp;packages in most Linux distributions<\/li>\n\n\n\n<li>If the packaged version is below the minimum version, the latest versions can be installed from Python\u2019s \u201cpip\u201d repository:&nbsp;<code>pip3&nbsp;install&nbsp;meson&nbsp;ninja<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>pyelftools<\/code>\u00a0(version 0.22+)\n<ul>\n<li>For Fedora systems it can be installed using&nbsp;<code>dnf&nbsp;install&nbsp;python-pyelftools<\/code><\/li>\n\n\n\n<li>For RHEL\/CentOS systems it can be installed using&nbsp;<code>pip3&nbsp;install&nbsp;pyelftools<\/code><\/li>\n\n\n\n<li>For Ubuntu\/Debian it can be installed using&nbsp;<code>apt&nbsp;install&nbsp;python3-pyelftools<\/code><\/li>\n\n\n\n<li>For Alpine Linux,&nbsp;<code>apk&nbsp;add&nbsp;py3-elftools<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Library for handling NUMA (Non Uniform Memory Access).\n<ul>\n<li><code>numactl-devel<\/code>&nbsp;in RHEL\/Fedora;<\/li>\n\n\n\n<li><code>libnuma-dev<\/code>&nbsp;in Debian\/Ubuntu;<\/li>\n\n\n\n<li><code>numactl-dev<\/code>&nbsp;in Alpine Linux<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/usr\/src\/\n$ wget https:\/\/fast.dpdk.org\/rel\/dpdk-21.11.tar.xz\n$ tar xf dpdk-21.11.tar.xz\n$ export DPDK_DIR=\/usr\/src\/dpdk-21.11\n$ cd $DPDK_DIR\n$ export DPDK_BUILD=$DPDK_DIR\/build\n$ meson setup build-arm64\n\n$ ninja -C build\n$ sudo ninja -C build install\n$ sudo ldconfig\n$ pkg-config --modversion libdpdk\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"slide-text-bg2\">\n<h3>\u4e00\u3001\u7f16\u8bd1\u73af\u5883\u51c6\u5907<\/h3>\n<\/div>\n<div class=\"flex-btn-div\"><a href=\"http:\/\/www.recologypower.com:9080\/?p=1781\" class=\"btn1 flex-btn\">\u9605\u8bfb\u66f4\u591a<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110],"tags":[],"_links":{"self":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1781"}],"collection":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1781"}],"version-history":[{"count":3,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions"}],"predecessor-version":[{"id":1807,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1781\/revisions\/1807"}],"wp:attachment":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1781"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}